提问人:Atharv Pingle 提问时间:11/16/2023 最后编辑:Brian Tompsett - 汤莱恩Atharv Pingle 更新时间:11/17/2023 访问量:46
AttributeError 回溯(最近一次调用最后一次) Openai API
AttributeError Traceback (most recent call last) Openai API
问:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
c:\Users\athar\OneDrive\Desktop\LangChain\langchain.ipynb Cell 4 line 2
1 text = "What is the capital of India"
---> 2 print(llm.predict(text))
File c:\Users\athar\OneDrive\Desktop\LangChain\venv\lib\site-packages\langchain\llms\base.py:916, in BaseLLM.predict(self, text, stop, **kwargs)
914 else:
915 _stop = list(stop)
--> 916 return self(text, stop=_stop, **kwargs)
AttributeError: module 'openai' has no attribute 'error'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
答: 暂无答案
评论