Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义 Remote Tool,FastAPI 的web 服务 #307

Open
zongking123 opened this issue Jan 23, 2024 · 0 comments
Open

自定义 Remote Tool,FastAPI 的web 服务 #307

zongking123 opened this issue Jan 23, 2024 · 0 comments
Assignees

Comments

@zongking123
Copy link

官方提供的代码:
image
服务可以起来,信息如下:
INFO: Started server process [66580]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8020 (Press CTRL+C to quit)
INFO: 127.0.0.1:49190 - "GET /.well-known/openapi.yaml HTTP/1.1" 200 OK
INFO: 10.10.58.119:36570 - "GET /.well-known/openapi.yaml HTTP/1.1" 200 OK

但是通过官方提供这段代码调用,失败了:
image
失败信息如下:
toolkit = RemoteToolkit.from_url("http://127.0.0.1:8020") # 必须存在:http://xxx.com/.well-known/openapi.yaml
File "/home/envs/Paddle/lib/python3.8/site-packages/erniebot_agent/tools/remote_toolkit.py", line 295, in from_url
toolkit = RemoteToolkit.from_openapi_file(
File "/home/envs/Paddle/lib/python3.8/site-packages/erniebot_agent/tools/remote_toolkit.py", line 229, in from_openapi_file
return cls.from_openapi_dict(
File "/home/envs/Paddle/lib/python3.8/site-packages/erniebot_agent/tools/remote_toolkit.py", line 175, in from_openapi_dict
info = EndpointInfo(**openapi_dict["info"])
TypeError: init() missing 1 required positional argument: 'description'

@sijunhe sijunhe assigned wj-Mcat and unassigned sijunhe Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants