P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
24 lines
445 B
Go
24 lines
445 B
Go
package geminicli
|
|
|
|
import "testing"
|
|
|
|
func TestDefaultModels_ContainsImageModels(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
byID := make(map[string]Model, len(DefaultModels))
|
|
for _, model := range DefaultModels {
|
|
byID[model.ID] = model
|
|
}
|
|
|
|
required := []string{
|
|
"gemini-2.5-flash-image",
|
|
"gemini-3.1-flash-image",
|
|
}
|
|
|
|
for _, id := range required {
|
|
if _, ok := byID[id]; !ok {
|
|
t.Fatalf("expected curated Gemini model %q to exist", id)
|
|
}
|
|
}
|
|
}
|