Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ client=Groq(api_key=groq_api_key)
|
|
14 |
|
15 |
def get_response(query):
|
16 |
|
17 |
-
response=client.chat.
|
18 |
|
19 |
messages=[
|
20 |
{"role":"system","content":"You are a math assistant. Your role is to solve math problems with a detailed, step-by-step solution. Be clear and concise in each step. If there are multiple approaches, select the most efficient method. Include any formulas or key concepts used, and provide the final answer at the end."},
|
|
|
14 |
|
15 |
def get_response(query):
|
16 |
|
17 |
+
response=client.chat.completions.create(
|
18 |
|
19 |
messages=[
|
20 |
{"role":"system","content":"You are a math assistant. Your role is to solve math problems with a detailed, step-by-step solution. Be clear and concise in each step. If there are multiple approaches, select the most efficient method. Include any formulas or key concepts used, and provide the final answer at the end."},
|