Migrate facade tests to the new configuration contracts
This commit is contained in:
@@ -14,7 +14,7 @@ func contentHashEngine(t *testing.T, promptID, profileID, backendID, content str
|
||||
if cache {
|
||||
message["cache_control"] = map[string]any{"type": "ephemeral"}
|
||||
}
|
||||
config := promptkit.Config{Sources: promptkit.ConfigurationSources{Main: &configkit.Input{Source: configkit.Mapping("hash test", map[string]any{
|
||||
config := promptkit.Config{Sources: promptkit.ConfigurationSources{Main: &configkit.Input{Destination: configkit.Keys("promptkit"), Source: configkit.Mapping("hash test", map[string]any{
|
||||
"backends": []any{map[string]any{"id": backendID, "endpoint": "https://example.test/v1"}},
|
||||
"profiles": []any{map[string]any{"id": profileID, "backend": backendID, "model": "model"}},
|
||||
"prompts": []any{map[string]any{"id": promptID, "default_profile": profileID, "inputs": []any{map[string]any{"name": "input", "required": false}}, "messages": []any{message}, "output": output}},
|
||||
|
||||
Reference in New Issue
Block a user