mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 00:05:30 +00:00
fix(platform): keep typesafe in composite channel platform options
The ollama_cloud channel-monitor UI commit replaced the compositePlatforms entry list with the pre-typesafe array plus ollama_cloud, silently dropping typesafe instead of taking the union. Backend concrete composite targets (isConcreteRequestPlatform / DetectModelPlatform and the frontend CONCRETE_PLATFORM_OPTIONS catalog) include typesafe, so composite groups were no longer selectable for typesafe channel sections. Restore typesafe alongside ollama_cloud and assert both in the existing composite channel platform options spec.
This commit is contained in:
1 parent
b9efe90e8c
commit
085e7d2ac6
2 files changed
+3
-2
No files matched your search
@@ -765,8 +765,8 @@ let abortController: AbortController | null = null
|
||||
// ── Platform config ──
|
||||
const platformOrder: GroupPlatform[] = ['anthropic', 'openai', 'gemini', 'antigravity', 'grok', 'kimi', 'zhipu', 'deepseek', 'minimax', 'opencode_go', 'typesafe', 'ollama_cloud']
|
||||
// Composite pricing/mapping may target every concrete schedulable provider.
|
||||
// (Backend isConcreteRequestPlatform includes ollama_cloud.)
|
||||
const compositePlatforms: GroupPlatform[] = ['anthropic', 'openai', 'gemini', 'antigravity', 'grok', 'kimi', 'zhipu', 'deepseek', 'minimax', 'opencode_go', 'ollama_cloud']
|
||||
// (Backend isConcreteRequestPlatform includes typesafe and ollama_cloud.)
|
||||
const compositePlatforms: GroupPlatform[] = ['anthropic', 'openai', 'gemini', 'antigravity', 'grok', 'kimi', 'zhipu', 'deepseek', 'minimax', 'opencode_go', 'typesafe', 'ollama_cloud']
|
||||
|
||||
// ── Helpers ──
|
||||
function formatDate(value: string): string {
|
||||
|
||||
@@ -12,6 +12,7 @@ describe('Composite channel platform options', () => {
|
||||
expect(declaration).toContain("'deepseek'")
|
||||
expect(declaration).toContain("'minimax'")
|
||||
expect(declaration).toContain("'opencode_go'")
|
||||
expect(declaration).toContain("'typesafe'")
|
||||
expect(declaration).toContain("'ollama_cloud'")
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user