zed: add prompt_cache_key capability field to model entries

This commit is contained in:
2026-05-23 21:12:47 +01:00
parent 00ba950cd9
commit 7716c180e7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -124,6 +124,7 @@ func zedLanguageModels(p *canonical.Profile) map[string]any {
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false,
},
}
if m.Alias != "" {
+1
View File
@@ -152,6 +152,7 @@ func TestZedRenderEmitsLanguageModelsOpenAICompatible(t *testing.T) {
caps, ok := m0["capabilities"].(map[string]any)
require.True(t, ok, "model must have capabilities")
assert.Equal(t, true, caps["tools"])
assert.Equal(t, false, caps["prompt_cache_key"])
}
func TestZedImport(t *testing.T) {