modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.
https://doc.agentscope.io/
Apache License 2.0
5.34k stars 328 forks source link

[HOTFIX] Fix the error when using multiple dashscope api keys #478

Closed DavdGao closed 3 weeks ago

DavdGao commented 3 weeks ago

Description

When using multiple dashscope API keys, the line dashcsope.api_key = self.api_key will cover each other, and finally there is only one valid api key.

Checklist

Please check the following items before code is ready to be reviewed.