api: let the openai provider pin chat or responses
ci / checks (push) Successful in 54s
ci / test (push) Successful in 1m0s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 17s
ci / docker (push) Successful in 1m49s
ci / publish-edge-image (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 3s

The openai kind already accepts a base URL, and the registry already
takes an explicit API choice, but the app always passed none. An
OpenAI-compatible server therefore had to answer chat completions.

The add-provider dialog now shows an API type for the openai kind:
automatic, chat completions, or responses. Automatic keeps the old
route rule, Responses at OpenAI itself and chat completions at a base
URL; an explicit choice pins either. A separate provider kind would
store the same fields and need the same adapter wiring.
This commit is contained in:
vhaudiquet committed 2026-12-02 19:23:28 +01:00
1 parent 1289f5f0c2
commit c67d8af42d
7 files changed
+135 -39

No files matched your search

+2
View File
@@ -159,6 +159,7 @@ export interface ProviderConfig {
kind: string
model: string
base_url: string | null
api: string | null
}
export interface ProviderListResponse {
@@ -215,6 +216,7 @@ export interface CreateProviderBody {
kind: string
model?: string
base_url?: string | null
api?: string | null
api_key?: string
}