Closed longmans closed 1 year ago
It works when I change the description of the requests module, I don't if it's the real reason.
experienced the same issue, it seems to be selecting the URL randomly
same here
Hi, @longmans! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, the issue is that the AIPluginTool is sometimes connecting to the wrong URL. Instead of connecting to "https://xxxx/plugin/.well-known/ai-plugin.json", it is connecting to "www.mamaimai.com/menu". You, along with amrakm and kesar, have experienced the same issue and provided comments. You mentioned that changing the description of the requests module seemed to fix the issue.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your contribution and we appreciate your understanding. Let us know if you have any further questions or concerns.
I'm using this code:
I got this error: File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/chains/base.py", line 113, in call outputs = self._call(inputs) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/agents/agent.py", line 505, in _call next_step_output = self._take_next_step( File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/agents/agent.py", line 423, in _take_next_step observation = tool.run( File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/tools/base.py", line 71, in run raise e File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/tools/base.py", line 68, in run observation = self._run(tool_input) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/tools/requests/tool.py", line 31, in _run return self.requests_wrapper.get(url) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/langchain/requests.py", line 23, in get return requests.get(url, headers=self.headers).text File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/Users/longman/Code/langchain/plugin/venv/lib/python3.8/site-packages/requests/adapters.py", line 563, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='www.mamaimai.com', port=443): Max retries exceeded with url: /menu (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1108)')))
here is my ai-plugin.json file: { "schema_version": "v1", "name_for_human": "Mamaimai restaurant order", "name_for_model": "Mamaimai restaurant food order", "description_for_human": "A plugin that helps users order and place orders", "description_for_model": "A plugin that helps users order and place orders", "auth": { "type": "none" }, "api": { "type": "openapi", "url": "https://the-graces.com/plugin/openapi.json", "is_user_authenticated": false }, "logo_url": "https://the-graces.com/plugin/logo.png", "contact_email": "longman@daw.global", "legal_info_url": "https://example.com/legal" }