Class BowireAiEndpoints

Namespace
Kuestenlogik.Bowire.Ai
Assembly
Kuestenlogik.Bowire.Ai.dll

HTTP API surface for the optional Kuestenlogik.Bowire.Ai package (#25 Phase 2). Three endpoints:

  • GET /api/ai/probe-local -- 300ms probe against Ollama (127.0.0.1:11434) and LM Studio (127.0.0.1:1234). Returns the model list each one advertises so the AI settings UI can offer a 'detected' pick.
  • GET /api/ai/status -- returns the active BowireAiOptions plus whether an Microsoft.Extensions.AI.IChatClient is registered.
  • POST /api/ai/chat -- proxy a chat completion via the registered Microsoft.Extensions.AI.IChatClient. Body shape mirrors a minimal subset of the OpenAI chat-completions request so the workbench's JS can keep one client shape across providers.
public static class BowireAiEndpoints
Inheritance
BowireAiEndpoints
Inherited Members

Methods

MapBowireAiEndpoints(IEndpointRouteBuilder, string)

public static IEndpointRouteBuilder MapBowireAiEndpoints(this IEndpointRouteBuilder endpoints, string basePath = "/bowire")

Parameters

endpoints IEndpointRouteBuilder
basePath string

Returns

IEndpointRouteBuilder