Skip to content

Commit

Permalink
fixed openai_functions api_response format args err (langchain-ai#9968)
Browse files Browse the repository at this point in the history
   root cause: args may not have a key (params) resulting in an error
  • Loading branch information
baskaryan authored Aug 31, 2023
2 parents 3efab8d + c26deb6 commit e60e1cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _call(
response = (
f"{api_response.status_code}: {api_response.reason}"
+ f"\nFor {name} "
+ f"Called with args: {args['params']}"
+ f"Called with args: {args.get('params','')}"
)
else:
try:
Expand Down

0 comments on commit e60e1cd

Please sign in to comment.