Dixing (Dex) Xu commited on
Commit
6732d38
·
unverified ·
1 Parent(s): 83d9156

fix: no openai.error (#51)

Browse files
Files changed (1) hide show
  1. aide/backend/backend_openai.py +1 -1
aide/backend/backend_openai.py CHANGED
@@ -58,7 +58,7 @@ def query(
58
  messages=messages,
59
  **filtered_kwargs,
60
  )
61
- except openai.error.BadRequestError as e:
62
  # Check whether the error indicates that function calling is not supported
63
  if "function calling" in str(e).lower() or "tools" in str(e).lower():
64
  logger.warning(
 
58
  messages=messages,
59
  **filtered_kwargs,
60
  )
61
+ except openai.BadRequestError as e:
62
  # Check whether the error indicates that function calling is not supported
63
  if "function calling" in str(e).lower() or "tools" in str(e).lower():
64
  logger.warning(