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

+7 -2
View File
@@ -618,9 +618,12 @@ One SQLite file in WAL mode.
```
accounts(id, handle, display_name, email, password_hash, created_at)
auth_sessions(token_hash, account_id, created_at, expires_at, last_seen)
provider_configs(id, account_id, name, kind, model, base_url, key_ciphertext)
provider_configs(id, account_id, name, kind, model, base_url, api,
key_ciphertext)
-- model is an optional default kept for existing rows; rooms carry
-- the model that turns use
-- api is chat or responses for the openai kind; unset follows the
-- route: Responses at OpenAI, chat completions at a base URL
sandbox_targets(id, account_id, name, host, user, port, key_ciphertext,
workspace_root, host_key, created_at)
rooms(id, name, owner_id, workspace, cwd, sandbox_target_id,
@@ -764,7 +767,9 @@ This repository, as committed:
output, price, and vision from the adapter and models.dev. A custom
id is always accepted. The add-provider dialog asks for a kind and
key, or runs a sign-in for GitHub Copilot, ChatGPT, and Mistral Vibe.
The room chooses the model.
An OpenAI provider also takes a base URL and an explicit chat
completions or responses API, so one kind reaches OpenAI itself and
any compatible server. The room chooses the model.
- One conversation per room, a `@rhema` mention starts a turn, human
messages are stamped with their author's name, and only the `message`
tool puts agent text in the room.