vfven commited on
Commit
dc1c0c2
·
verified ·
1 Parent(s): 556d544

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -3
main.py CHANGED
@@ -143,10 +143,15 @@ async def call_llm(agent, task):
143
  # 2. OpenRouter fallback
144
  if OPENROUTER_API_KEY and agent["provider"] != "openrouter":
145
  or_prov = PROVIDERS["openrouter"]
146
- for m in ["meta-llama/llama-3.3-70b-instruct:free",
 
147
  "mistralai/mistral-small-3.1-24b-instruct:free",
148
  "qwen/qwen3-4b:free",
149
- "google/gemma-3-12b-it:free"]:
 
 
 
 
150
  try:
151
  return await call_compat(or_prov["base_url"], m, system, task,
152
  or_prov["key"], or_prov.get("headers", {}))
@@ -157,7 +162,7 @@ async def call_llm(agent, task):
157
 
158
  # 3. Groq fallback
159
  if GROQ_API_KEY and agent["provider"] != "groq":
160
- for m in ["llama3-70b-8192", "gemma2-9b-it", "llama3-8b-8192", "mixtral-8x7b-32768"]:
161
  try:
162
  return await call_compat(PROVIDERS["groq"]["base_url"], m, system, task,
163
  GROQ_API_KEY, {})
 
143
  # 2. OpenRouter fallback
144
  if OPENROUTER_API_KEY and agent["provider"] != "openrouter":
145
  or_prov = PROVIDERS["openrouter"]
146
+ for m in [
147
+ "meta-llama/llama-3.3-70b-instruct:free",
148
  "mistralai/mistral-small-3.1-24b-instruct:free",
149
  "qwen/qwen3-4b:free",
150
+ "google/gemma-3-12b-it:free",
151
+ "qwen/qwen-2.5-72b-instruct:free",
152
+ "microsoft/phi-4-reasoning-plus:free",
153
+ "deepseek/deepseek-r1-distill-llama-70b:free",
154
+ ]:
155
  try:
156
  return await call_compat(or_prov["base_url"], m, system, task,
157
  or_prov["key"], or_prov.get("headers", {}))
 
162
 
163
  # 3. Groq fallback
164
  if GROQ_API_KEY and agent["provider"] != "groq":
165
+ for m in ["llama3-70b-8192", "gemma2-9b-it", "llama3-8b-8192"]:
166
  try:
167
  return await call_compat(PROVIDERS["groq"]["base_url"], m, system, task,
168
  GROQ_API_KEY, {})