We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f29d87d commit e5fc320Copy full SHA for e5fc320
1 file changed
packages/uipath_langchain_client/src/uipath_langchain_client/clients/normalized/chat_models.py
@@ -244,7 +244,11 @@ def _preprocess_request(
244
"arguments": (
245
tool_call["function"]["arguments"]
246
if isinstance(tool_call["function"]["arguments"], dict)
247
- else (json.loads(tool_call["function"]["arguments"]) if tool_call["function"]["arguments"] else {})
+ else (
248
+ json.loads(tool_call["function"]["arguments"])
249
+ if tool_call["function"]["arguments"]
250
+ else {}
251
+ )
252
),
253
}
254
for tool_call in converted_message["tool_calls"]
0 commit comments