mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
Upstream changes: - Codex responses compaction payload compatibility - Codex usage_limit_reached retry-after, deterministic parsing - Codex refresh_token_reused non-retryable fix - Qwen rate limiting and quota error handling - Context management compatibility simplification - Antigravity tool_result image fix, model list backfill, deep copy cache - Auth auto-refresh interval/concurrency limiting - Auth hook OnResult refactor (replaces MarkResult) - Gemini-3.1-flash-image support - Registry cleanup of outdated model definitions Fork resolution: - Accept upstream's consolidated conductor.go (auto-refresh, round-tripper) - Delete stale conductor_oauth.go, conductor_token.go (upstream reversed split) - Delete stale provider_rotation_test.go (references removed method)
18 lines
554 B
Go
18 lines
554 B
Go
package util
|
|
|
|
import "testing"
|
|
|
|
func TestNormalizeDroidCustomModel_GeminiClaude(t *testing.T) {
|
|
in := "custom:CLIProxy-(local):-gemini-claude-opus-4-5-thinking-12"
|
|
if got := NormalizeDroidCustomModel(in); got != "gemini-claude-opus-4-5-thinking" {
|
|
t.Fatalf("NormalizeDroidCustomModel=%q", got)
|
|
}
|
|
}
|
|
|
|
func TestNormalizeDroidCustomModel_GPTReasoning(t *testing.T) {
|
|
in := "custom:CLIProxy-(local):-gpt-5.2-(reasoning:-medium)-2"
|
|
if got := NormalizeDroidCustomModel(in); got != "gpt-5.2(medium)" {
|
|
t.Fatalf("NormalizeDroidCustomModel=%q", got)
|
|
}
|
|
}
|