test(web): format lmstudio model status cases for golines
This commit is contained in:
parent
3e587cf1d4
commit
c223c10fd1
1 changed files with 7 additions and 2 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue