mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 17:09:37 +08:00
chore: remove outdated comments regarding providerType handling
This commit is contained in:
parent
b52afe075f
commit
06d4e286b3
@ -15,11 +15,6 @@ export class ModelsService {
|
|||||||
|
|
||||||
const providers = await getAvailableProviders()
|
const providers = await getAvailableProviders()
|
||||||
|
|
||||||
// Note: When providerType === 'anthropic', we now return ALL available models
|
|
||||||
// because the API Server's unified adapter (AiSdkToAnthropicSSE) can convert
|
|
||||||
// any provider's response to Anthropic SSE format. This enables Claude Code Agent
|
|
||||||
// to work with OpenAI, Gemini, and other providers transparently.
|
|
||||||
|
|
||||||
const models = await listAllAvailableModels(providers)
|
const models = await listAllAvailableModels(providers)
|
||||||
// Use Map to deduplicate models by their full ID (provider:model_id)
|
// Use Map to deduplicate models by their full ID (provider:model_id)
|
||||||
const uniqueModels = new Map<string, ApiModel>()
|
const uniqueModels = new Map<string, ApiModel>()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user