shoaib4045 commited on
Commit
cfb4ff2
Β·
1 Parent(s): f2dfbf9

Upgrade decommissioned LLM model to llama-3.3

Browse files
Files changed (1) hide show
  1. app/agent/nodes.py +4 -4
app/agent/nodes.py CHANGED
@@ -34,10 +34,10 @@ except ImportError:
34
 
35
  # ── LLM configuration ────────────────────────────────────────────────────────
36
 
37
- LLM_MODEL = os.getenv("LLM_MODEL", "llama-3.1-70b-versatile")
38
- # Guard against accidentally using the grok model name which does not exist on Groq API
39
- if "grok" in LLM_MODEL.lower():
40
- LLM_MODEL = "llama-3.1-70b-versatile"
41
 
42
  LLM_TEMPERATURE = float(os.getenv("LLM_TEMPERATURE", "0.1"))
43
 
 
34
 
35
  # ── LLM configuration ────────────────────────────────────────────────────────
36
 
37
+ LLM_MODEL = os.getenv("LLM_MODEL", "llama-3.3-70b-versatile")
38
+ # Guard against decommissioned models or typos
39
+ if "llama-3.1-70b-versatile" in LLM_MODEL.lower() or "grok" in LLM_MODEL.lower():
40
+ LLM_MODEL = "llama-3.3-70b-versatile"
41
 
42
  LLM_TEMPERATURE = float(os.getenv("LLM_TEMPERATURE", "0.1"))
43