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

使用0.8.1版本时报如下错误日志,切换到0.7.7版本中恢复正常 #1250

Closed
nzk1912 opened this issue May 7, 2024 · 1 comment

Comments

@nzk1912
Copy link

nzk1912 commented May 7, 2024

Bug description
安装metagpt0.8.1,配置大模型使用阿里通义模型,运行时报如下错误:

ERROR    | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 30.166(s), this was the 1st time calling it. exp: openai.types.completion_usage.CompletionUsage() argument after ** must be a mapping, not CompletionUsage

Bug solved method
切换metagpt到0.7.7版本,恢复正常

Environment information

  • LLM type and model name:阿里通义千问,Qwen-72B-Chat
  • System version:Red Hat Linux
  • Python version:3.10.13
  • MetaGPT version or branch:0.8.1 (0.8.0现象相同)
@chg0901
Copy link

chg0901 commented May 13, 2024

#1252 (comment)

这个可以解决(使用的是deepseek的llm,采用的是类似openai的api方式)

llm:
  api_type: "openai" 
  model: "deepseek-chat"  
  base_url: "https://api.deepseek.com" 
  api_key: ''

@geekan geekan closed this as completed May 18, 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