Skip to content

Commit

Permalink
for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rsb-23 committed Dec 1, 2024
1 parent 1312cc3 commit 33f6b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groq_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def ask_groq(query_text: str, system_content: str, json_schema: dict = None) ->
# json_str = re.sub("\n +", "", json_str)
return json.loads(json_str)
except json.JSONDecodeError as e:
print(e.doc, e.pos)
print(e.doc.encode(), e.pos)
print(f"ERROR : {e.args}")
return {"suggestions": ["..."]}

Expand Down

0 comments on commit 33f6b0e

Please sign in to comment.