mirror of
https://github.com/lukaszraczylo/harness-sync.git
synced 2026-10-17 01:17:35 +00:00
zed: add prompt_cache_key capability field to model entries
This commit is contained in:
@@ -124,6 +124,7 @@ func zedLanguageModels(p *canonical.Profile) map[string]any {
|
|||||||
"tools": true,
|
"tools": true,
|
||||||
"images": false,
|
"images": false,
|
||||||
"parallel_tool_calls": false,
|
"parallel_tool_calls": false,
|
||||||
|
"prompt_cache_key": false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if m.Alias != "" {
|
if m.Alias != "" {
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ func TestZedRenderEmitsLanguageModelsOpenAICompatible(t *testing.T) {
|
|||||||
caps, ok := m0["capabilities"].(map[string]any)
|
caps, ok := m0["capabilities"].(map[string]any)
|
||||||
require.True(t, ok, "model must have capabilities")
|
require.True(t, ok, "model must have capabilities")
|
||||||
assert.Equal(t, true, caps["tools"])
|
assert.Equal(t, true, caps["tools"])
|
||||||
|
assert.Equal(t, false, caps["prompt_cache_key"])
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestZedImport(t *testing.T) {
|
func TestZedImport(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user