We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
官方提供的代码: 服务可以起来,信息如下: 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
但是通过官方提供这段代码调用,失败了: 失败信息如下: 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'
The text was updated successfully, but these errors were encountered:
wj-Mcat
No branches or pull requests
官方提供的代码:
服务可以起来,信息如下:
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
但是通过官方提供这段代码调用,失败了:
失败信息如下:
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'
The text was updated successfully, but these errors were encountered: