Haider67 commited on
Commit
b037552
·
verified ·
1 Parent(s): f47fb9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -143,9 +143,10 @@ def generate_groq_response(prompt: str) -> str:
143
  {"role": "user", "content": prompt}
144
  ],
145
  "temperature": 0.0,
146
- "max_tokens": 2048,
147
- "tool_choice": "none" # Explicitly disable tools so the model never attempts a tool call
148
  }
 
149
 
150
  for attempt in range(MAX_RETRIES + 1):
151
  try:
 
143
  {"role": "user", "content": prompt}
144
  ],
145
  "temperature": 0.0,
146
+ "max_tokens": 2048
147
+ # Removed "tool_choice": "none" to prevent Groq API validation rejections
148
  }
149
+
150
 
151
  for attempt in range(MAX_RETRIES + 1):
152
  try: