test(web): format lmstudio model status cases for golines

This commit is contained in:
lc6464 2026-03-30 22:57:53 +08:00
parent 3e587cf1d4
commit c223c10fd1
No known key found for this signature in database
GPG key ID: 53C61B42FEC71D6D

View file

@ -37,11 +37,16 @@ func TestProbeLocalModelAvailability_OpenAICompatibleIncludesAPIKey(t *testing.T
} }
func TestRequiresRuntimeProbe_LMStudio(t *testing.T) { func TestRequiresRuntimeProbe_LMStudio(t *testing.T) {
if !requiresRuntimeProbe(&config.ModelConfig{Model: "lmstudio/openai/gpt-oss-20b"}) { if !requiresRuntimeProbe(&config.ModelConfig{
Model: "lmstudio/openai/gpt-oss-20b",
}) {
t.Fatal("requiresRuntimeProbe(lmstudio with default base) = false, want true") t.Fatal("requiresRuntimeProbe(lmstudio with default base) = false, want true")
} }
if requiresRuntimeProbe(&config.ModelConfig{Model: "lmstudio/openai/gpt-oss-20b", APIBase: "https://api.example.com/v1"}) { if requiresRuntimeProbe(&config.ModelConfig{
Model: "lmstudio/openai/gpt-oss-20b",
APIBase: "https://api.example.com/v1",
}) {
t.Fatal("requiresRuntimeProbe(lmstudio with remote base) = true, want false") t.Fatal("requiresRuntimeProbe(lmstudio with remote base) = true, want false")
} }
} }