Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebeu committed Feb 15, 2024
1 parent 57f5531 commit f19d035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api-service/utils/suggestion_tag_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def validate_suggestion(xml):
model="gpt-4-0125-preview",
)

# TODO: if bad json, retry model call
try:
suggestions = json.loads(resp)["suggestions"]
except json.JSONDecodeError: # Specifically catch JSON errors
Expand Down

0 comments on commit f19d035

Please sign in to comment.