mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-16 15:43:13 +08:00
Keep the internal platform ID opencode_go. Product surface is OpenCode with account_mode zen|go, model-aware routing across Chat Completions, Responses, and Anthropic Messages, and X-OpenCode-Session derived from prompt_cache_key / metadata.user_id so prompt cache can hit. Unmatched models fall back to /v1/chat/completions. Related to #6742.
23 lines
334 B
Go
23 lines
334 B
Go
package model
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestAllPlatformsIncludesEveryConcretePlatform(t *testing.T) {
|
|
require.ElementsMatch(t, []string{
|
|
"anthropic",
|
|
"openai",
|
|
"gemini",
|
|
"antigravity",
|
|
"grok",
|
|
"kimi",
|
|
"zhipu",
|
|
"deepseek",
|
|
"minimax",
|
|
"opencode_go",
|
|
}, AllPlatforms())
|
|
}
|