Pannello endpoint /endpoint e primo avvio guidato (ripristino da 0.9.2, senza provider predefiniti)
Riportato dalla 0.9.2 solo cio' che serve alla configurazione dei provider: - /endpoint nella TUI: elenco provider, aggiunta/modifica/rimozione, scelta del modello da /v1/models, impostazioni per modello (contesto, temperatura, top_p, max output, ragionamento, nome mostrato), nomi abbreviati dei modelli. - primo avvio guidato quando non c'e' alcun provider: endpoint, chiave, dove salvarla (portachiavi o file protetto), elenco modelli dal server, prova della connessione, salvataggio in config.toml. - chiavi per provider nel portachiavi (`api_key = "keyring"`, `akode login --provider <id> --with-api-key`, `akode logout --provider <id>`). Nessun URL, modello o provider predefinito nel codice; nessun provider cloud tra le scelte (solo endpoint personalizzato e i provider locali Ollama/LM Studio gia' presenti in upstream). Lasciati fuori: passo tema e passo ricerca web (SearXNG) del primo avvio, barra di stato, unione messaggi di sistema, header @@, modello ausiliario, tool function di apply_patch. Test: test CLI debug_models riportato al comportamento upstream (catalogo incluso); snapshot doctor aggiornati al nome e alla versione aKode. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3048,6 +3048,14 @@
|
||||
"additionalProperties": false,
|
||||
"description": "Serializable representation of a provider definition.",
|
||||
"properties": {
|
||||
"api_key": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ProviderApiKeySource"
|
||||
}
|
||||
],
|
||||
"description": "Where to read this provider's API key from. `\"keyring\"` reads the key stored with `akode login --provider <id> --with-api-key`: in the system keyring, or in a private file in AKODE_HOME when `provider_api_key_store` selects (or falls back to) file storage."
|
||||
},
|
||||
"auth": {
|
||||
"allOf": [
|
||||
{
|
||||
@@ -3106,6 +3114,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.",
|
||||
@@ -3126,7 +3141,7 @@
|
||||
},
|
||||
"requires_openai_auth": {
|
||||
"default": false,
|
||||
"description": "Use the API key stored with `akode login --with-api-key` (in `auth.json` or the credentials store selected by `cli_auth_credentials_store`) for this provider. When false (the default), the key comes from `env_key` or `auth`, if any.",
|
||||
"description": "Use the API key stored with `akode login --with-api-key` (in `auth.json` or the credentials store selected by `cli_auth_credentials_store`) for this provider. `use_stored_api_key` is accepted as a clearer alias. When false (the default), the key comes from `api_key`, `env_key`, or `auth`, if any.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"stream_idle_timeout_ms": {
|
||||
@@ -3951,6 +3966,58 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ProviderApiKeySource": {
|
||||
"description": "Source of a provider API key configured through `api_key`.",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Read the key from the system keyring (service `aKode`, account `model-provider:<id>`).",
|
||||
"enum": [
|
||||
"keyring"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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": [
|
||||
@@ -8557,6 +8624,15 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"provider_api_key_store": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/AuthCredentialsStoreMode"
|
||||
}
|
||||
],
|
||||
"default": null,
|
||||
"description": "Where per-provider API keys (`api_key = \"keyring\"`) are stored. auto (default): the system keyring if available, otherwise `AKODE_HOME/provider_api_keys.json` (owner-only permissions). keyring: the system keyring only. file: the file only. ephemeral: memory only."
|
||||
},
|
||||
"realtime": {
|
||||
"allOf": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user