mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-14 03:33:43 +08:00
Closes #166 EmbeddingModelFactory used EmbeddingProtocol.fromProviderId() to pick the embedding protocol, which substring-matches 'dashscope' / 'qwen' / 'aliyun' in the providerId. The dashscope-compat provider carries 'dashscope' in its id but runs in OpenAI compatible mode (chatModel='OpenAIChatModel', baseUrl='https://dashscope.aliyuncs.com/compatible-mode/v1'). Routing it to DASHSCOPE_EMBEDDING made DashScopeApi build its native path against the compat base, producing 404s on every embedding call. Switch to the chatModel column instead — the same signal ModelProtocol .fromChatModel() uses for the chat path. chatModel='DashScopeChatModel' takes the native protocol; everything else (including dashscope-compat) takes OpenAI-compatible. EmbeddingProtocol.fromProviderId() is retained for reference but is no longer called; future callers should follow the chatModel pattern. |
||
|---|---|---|
| .. | ||
| anthropic/oauth | ||
| cache | ||
| chatgpt | ||
| chatmodel | ||
| config | ||
| controller | ||
| embedding | ||
| event | ||
| failover | ||
| gemini | ||
| model | ||
| oauth | ||
| repository | ||
| routing | ||
| service | ||