feat: refresh model list for API-key providers at the managed endpoint (#1824)

* feat: refresh model list for API-key providers at the managed endpoint

* docs: simplify changeset wording

* docs: add kimi-code/k3 to the default config example

* fix: clear stale default model when a refresh drops its alias

* fix: clear refresh defaults via replace; set(undefined) cannot delete

* docs: drop the auto model refresh paragraph from providers page

* docs: simplify changeset wording
This commit is contained in:
liruifengv 2026-07-17 17:17:58 +08:00 committed by GitHub
parent a5c568dc7a
commit bfecd0128f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1017 additions and 37 deletions

View file

@ -23,7 +23,7 @@ TOML field names always use snake_case, for example `default_model` and `max_con
The following example covers the most commonly used configuration fields. You can copy it and adjust as needed:
```toml
default_model = "kimi-code/kimi-for-coding"
default_model = "kimi-code/k3"
default_permission_mode = "manual"
default_plan_mode = false
merge_all_available_skills = true
@ -34,6 +34,15 @@ type = "kimi"
base_url = "https://api.kimi.com/coding/v1"
api_key = ""
[models."kimi-code/k3"]
provider = "managed:kimi-code"
model = "k3"
max_context_size = 1048576
capabilities = [ "thinking", "always_thinking", "image_in", "video_in", "tool_use" ]
display_name = "K3"
support_efforts = [ "max" ]
default_effort = "max"
[models."kimi-code/kimi-for-coding"]
provider = "managed:kimi-code"
model = "kimi-for-coding"

View file

@ -23,7 +23,7 @@ TOML 字段名一律用下划线snake_case如 `default_model`、`max_co
以下示例覆盖最常用的配置项,可直接复制后按需修改:
```toml
default_model = "kimi-code/kimi-for-coding"
default_model = "kimi-code/k3"
default_permission_mode = "manual"
default_plan_mode = false
merge_all_available_skills = true
@ -34,6 +34,15 @@ type = "kimi"
base_url = "https://api.kimi.com/coding/v1"
api_key = ""
[models."kimi-code/k3"]
provider = "managed:kimi-code"
model = "k3"
max_context_size = 1048576
capabilities = [ "thinking", "always_thinking", "image_in", "video_in", "tool_use" ]
display_name = "K3"
support_efforts = [ "max" ]
default_effort = "max"
[models."kimi-code/kimi-for-coding"]
provider = "managed:kimi-code"
model = "kimi-for-coding"