mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-05 20:58:25 +00:00
fixed openai_functions api_response format args err
root cause: args may not have a key (params) resulting in an error
This commit is contained in:
parent
ffa5625134
commit
c26deb6b38
@ -227,7 +227,7 @@ class SimpleRequestChain(Chain):
|
|||||||
response = (
|
response = (
|
||||||
f"{api_response.status_code}: {api_response.reason}"
|
f"{api_response.status_code}: {api_response.reason}"
|
||||||
+ f"\nFor {name} "
|
+ f"\nFor {name} "
|
||||||
+ f"Called with args: {args['params']}"
|
+ f"Called with args: {args.get('params','')}"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user