yasserrmd commited on
Commit
dca45c3
·
verified ·
1 Parent(s): f98e663

Update app/utils/groq_client.py

Browse files
Files changed (1) hide show
  1. app/utils/groq_client.py +1 -1
app/utils/groq_client.py CHANGED
@@ -118,7 +118,7 @@ class GroqClient:
118
  )
119
  text_output = chat_completion.choices[0].message.content
120
  print(text_output)
121
- json_output = extract_json(text_output)
122
  # Validate if the output is valid JSON
123
  try:
124
  json.loads(json_output)
 
118
  )
119
  text_output = chat_completion.choices[0].message.content
120
  print(text_output)
121
+ json_output = self.extract_json(text_output)
122
  # Validate if the output is valid JSON
123
  try:
124
  json.loads(json_output)