mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 03:38:06 +00:00
fixed openai_functions api_response format args err (#9968)
root cause: args may not have a key (params) resulting in an error
This commit is contained in:
commit
e60e1cdf23
@ -227,7 +227,7 @@ class SimpleRequestChain(Chain):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user