aKode v0.2: pannello /endpoint e impostazioni per modello
- /endpoint: tre colonne (endpoint, modelli, impostazioni), una alla volta sotto 100 colonne con il percorso in alto. Aggiunta e modifica con il modulo dell'endpoint di /setup (chiave mascherata e mantenuta se vuota), prova della connessione, eliminazione con conferma e rimozione della chiave, «u» per usare endpoint e modello con una nuova chat. - [model_providers.<id>.models."<modello>"]: context_window, temperature, top_p, max_output_tokens, reasoning_effort, display_name. Il valore del modello vince su quello globale; temperature/top_p/max_output_tokens vanno nella richiesta Responses; il contesto entra nel calcolo di ctx % e dell'auto-compattazione. Le modifiche al modello attivo valgono dal turno successivo, senza riavvio. - Nomi dei modelli: gli id che sono percorsi mostrano solo il nome del file senza estensione; display_name ha la precedenza. L'API riceve sempre l'id completo. - /setup: se [web_search] è configurato, l'URL di SearXNG è precompilato e «Mantieni» è preselezionato. - Schema della configurazione rigenerato; test per precedenze, richiesta, snapshot a 80/120/160 colonne e assenza delle chiavi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3122,6 +3122,13 @@
|
||||
"description": "Optional full URL for a Codex-native model catalog (Codex catalog format, not the public `/v1/models` API). When unset, models are listed from `GET {base_url}/models`.\n\nCatalog requests use the provider's credentials. Only configure an endpoint you trust with those credentials.",
|
||||
"type": "string"
|
||||
},
|
||||
"models": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/ProviderModelSettings"
|
||||
},
|
||||
"description": "Per-model settings keyed by model id (`[model_providers.<id>.models.\"<model id>\"]`). A value set here wins over the matching global setting (e.g. `model_context_window`).",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"default": "",
|
||||
"description": "Friendly display name.",
|
||||
@@ -3979,6 +3986,46 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"ProviderModelSettings": {
|
||||
"additionalProperties": false,
|
||||
"description": "Settings for one model of a provider. Every value is optional; unset values fall back to the global settings, then to what the server reports, then to the defaults.",
|
||||
"properties": {
|
||||
"context_window": {
|
||||
"description": "Context window in tokens (wins over `model_context_window`).",
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"display_name": {
|
||||
"description": "Name shown in the interface instead of the model id (the API always gets the id).",
|
||||
"type": "string"
|
||||
},
|
||||
"max_output_tokens": {
|
||||
"description": "Maximum output tokens per response (`max_output_tokens`).",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"reasoning_effort": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ReasoningEffort"
|
||||
}
|
||||
],
|
||||
"description": "Reasoning effort (wins over `model_reasoning_effort`)."
|
||||
},
|
||||
"temperature": {
|
||||
"description": "Sampling temperature sent with each request.",
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
},
|
||||
"top_p": {
|
||||
"description": "Nucleus sampling (`top_p`) sent with each request.",
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ProxySecretSource": {
|
||||
"description": "A credential source in the trusted proxy process, never in the executor environment.",
|
||||
"oneOf": [
|
||||
|
||||
Reference in New Issue
Block a user