Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed May 7, 2024
1 parent 4e8e717 commit d835fdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convertanything/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def convertanything(
user=str(uuid.uuid4()),
)
response = completion.choices[0].message.content
logging.info(f"Response: {response}")
if "```json" in response:
response = response.split("```json")[1].split("```")[0].strip()
elif "```" in response:
Expand Down

0 comments on commit d835fdd

Please sign in to comment.