Add backend provider and cost configuration

This commit is contained in:
2026-11-22 18:11:10 +00:00
parent f2b0ed8d6c
commit 6056f93e55
9 changed files with 108 additions and 13 deletions

View File

@@ -263,11 +263,13 @@ host; unlike the backend base endpoint, its path and query are allowed. Null
means fallback, while an explicit blank value is invalid.
Omitted/null `authentication` means no authentication adapter is declared. A
non-null object requires `kind`, which is trimmed and case-normalized; the
recognized values are `none` and `openrouter_key`. Its omitted/null endpoint
non-null object's optional `kind` is trimmed and case-normalized; accepted
values are `none`, `openrouter_key`, and `vllm_models`. Its omitted/null endpoint
uses the adapter's backend-relative destination (`openrouter_key` appends
`/key` to the effective backend base); an explicit endpoint follows the same
full-URL rules as reachability. `none` declares authentication inapplicable.
Without a selected adapter, or for `vllm_models`, authentication diagnostics
currently report an unsupported selection.
These values are configuration only: engine construction does not contact a
backend.

View File

@@ -124,6 +124,8 @@ Validation: prepared execution and coordinate observation contract tests.
## Stage 3 — Backend Configuration And Provider Selection
**Completed.**
Touch `internal/settings/settings.go`, `backends.go`, configuration ownership,
resolution/validation code, and the provider-selection functions in `internal/llm`.