fix(thinking): use static lookup to avoid alias issues

This commit is contained in:
hkfires
2026-01-14 15:44:08 +08:00
parent a75fb6af90
commit 40ee065eff
11 changed files with 52 additions and 28 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func TestIsUserDefinedModel(t *testing.T) {
modelInfo *registry.ModelInfo
want bool
}{
{"nil modelInfo", nil, false},
{"nil modelInfo", nil, true},
{"not user-defined no flag", &registry.ModelInfo{ID: "test"}, false},
{"not user-defined with type", &registry.ModelInfo{ID: "test", Type: "openai"}, false},
{"user-defined with flag", &registry.ModelInfo{ID: "test", Type: "openai", UserDefined: true}, true},