| 1 | package openai |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | // The v9 migration clears a standard request_url override instead of pinning the |
| 6 | // canonical URL, so the derived endpoint must stay byte-identical to it. |
| 7 | func TestOfficialDeepSeekDerivedChatURLMatchesMigrationTarget(t *testing.T) { |
| 8 | if got := resolveOpenAIChatURL("https://api.deepseek.com", nil); got != "https://api.deepseek.com/chat/completions" { |
| 9 | t.Fatalf("derived chat URL = %q", got) |
| 10 | } |
| 11 | if got := normalizeChatURL("https://api.deepseek.com", ""); got != "https://api.deepseek.com/chat/completions" { |
| 12 | t.Fatalf("normalized chat URL = %q", got) |
| 13 | } |
| 14 | } |
| 15 |