You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
运行错误
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain_core/language_models/chat_models.py", line 632, in call
generation = self.generate(
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain_core/language_models/chat_models.py", line 383, in generate
llm_output = self._combine_llm_outputs([res.llm_output for res in results])
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain/chat_models/openai.py", line 363, in _combine_llm_outputs
for k, v in token_usage.items():
AttributeError: 'NoneType' object has no attribute 'items'
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
No response
期望行为 | Expected Behavior
No response
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
备注 | Anything else?
运行错误
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain_core/language_models/chat_models.py", line 632, in call
generation = self.generate(
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain_core/language_models/chat_models.py", line 383, in generate
llm_output = self._combine_llm_outputs([res.llm_output for res in results])
File "/data/anaconda3/envs/LangChain/lib/python3.9/site-packages/langchain/chat_models/openai.py", line 363, in _combine_llm_outputs
for k, v in token_usage.items():
AttributeError: 'NoneType' object has no attribute 'items'
现在token_usage返回值为None,测试openai v1.x 版本都不行需要0.28 能否更新一下接口呢
The text was updated successfully, but these errors were encountered: