|
|
@@ -67,6 +67,16 @@ class Lam(Term):
|
|
|
|
|
|
def _detect_provider(self) -> str:
|
|
|
m = self.model.lower()
|
|
|
+ # Explicit provider prefix takes priority
|
|
|
+ if m.startswith('dashscope/'):
|
|
|
+ return 'dashscope'
|
|
|
+ if m.startswith('anthropic/'):
|
|
|
+ return 'anthropic'
|
|
|
+ if m.startswith('openai/'):
|
|
|
+ return 'openai'
|
|
|
+ if m.startswith('ollama/'):
|
|
|
+ return 'ollama'
|
|
|
+ # Auto-detect by model name
|
|
|
if 'claude' in m or 'anthropic' in m:
|
|
|
return 'anthropic'
|
|
|
elif 'gpt' in m or 'openai' in m:
|