Files
sub2api/backend/internal/model/error_passthrough_rule_test.go
T
刘佳林 242907854d feat(opencode): add OpenCode platform with Zen and GO account types
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.
2026-09-11 10:05:24 +08:00

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())
}