mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-16 17:53:37 +00:00
🎯Bug: format the url and path_params (#6755)
- Description: format the url and path_params correctly, - Issue: #6753, - Dependencies: None, - Tag maintainer: @vowelparrot, - Twitter handle: @0xbluesecurity
This commit is contained in:
parent
07d802d088
commit
4535b0b41e
@ -161,7 +161,7 @@ def openapi_spec_to_openai_fn(
|
||||
method = _name_to_call_map[name]["method"]
|
||||
url = _name_to_call_map[name]["url"]
|
||||
path_params = fn_args.pop("path_params", {})
|
||||
_format_url(url, path_params)
|
||||
url = _format_url(url, path_params)
|
||||
if "data" in fn_args and isinstance(fn_args["data"], dict):
|
||||
fn_args["data"] = json.dumps(fn_args["data"])
|
||||
_kwargs = {**fn_args, **kwargs}
|
||||
|
Loading…
Reference in New Issue
Block a user