Add Scriptorium-backed LLM runtime
This commit is contained in:
@@ -445,15 +445,18 @@ func TestRunInvalidFlagsExitTwo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestProductionLLMClientFactoryReportsPendingScriptoriumRuntime(t *testing.T) {
|
||||
func TestProductionLLMClientFactoryBuildsScriptoriumRuntime(t *testing.T) {
|
||||
cfg := config.Default()
|
||||
|
||||
_, _, err := productionLLMClientFactory(context.Background(), cfg, "mistral-small-3")
|
||||
if err == nil {
|
||||
t.Fatal("productionLLMClientFactory() error = nil, want error")
|
||||
client, profiles, err := productionLLMClientFactory(context.Background(), cfg, "mistral-small-3")
|
||||
if err != nil {
|
||||
t.Fatalf("productionLLMClientFactory() error = %v, want nil", err)
|
||||
}
|
||||
if !strings.Contains(err.Error(), "Scriptorium-backed LLM client") || !strings.Contains(err.Error(), "not implemented yet") {
|
||||
t.Fatalf("error = %q, want pending Scriptorium runtime context", err.Error())
|
||||
if client == nil {
|
||||
t.Fatal("productionLLMClientFactory() client = nil, want client")
|
||||
}
|
||||
if profiles != nil {
|
||||
t.Fatalf("productionLLMClientFactory() profiles = %#v, want runtime-reported profiles", profiles)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user