Fix default LLM model to claude-3-haiku (compatible with API key tier)

This commit is contained in:
2026-04-13 15:49:22 +00:00
parent a1454a0d05
commit 4ee0dc4c11
4 changed files with 84 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
import sys
sys.path.insert(0, "/app/agents")
from shared import api_request, DASHBOARD_API
from llm_client import get_llm_config, DEFAULT_MODELS
# Check what config the user has
config = api_request(f"{DASHBOARD_API}/api/users/2/llm", retries=1)
print(f"LLM config: {config}")
print(f"Default model for anthropic: {DEFAULT_MODELS.get('anthropic')}")
# Try a simple completion
from llm_client import complete
try:
result = complete(2, "Say hello in one sentence.", max_tokens=50)
print(f"Success: {result}")
except Exception as e:
print(f"Error: {e}")