Skip to content

Commit

Permalink
fix: no openai.error (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexhunter authored Feb 20, 2025
1 parent 83d9156 commit 6732d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aide/backend/backend_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def query(
messages=messages,
**filtered_kwargs,
)
except openai.error.BadRequestError as e:
except openai.BadRequestError as e:
# Check whether the error indicates that function calling is not supported
if "function calling" in str(e).lower() or "tools" in str(e).lower():
logger.warning(
Expand Down

0 comments on commit 6732d38

Please sign in to comment.