MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

update get rpm from api.openai.com

Open MaxZhongSheep opened this issue 2 years ago • 3 comments
trafficstars

I access the "https://platform.openai.com/account/limits" webpage to automatically obtain RPM by setting the session key. The logic is as follows: if the connection to OpenAI fails, the RPM is set to the default value. If the connection to OpenAI is successful but the sess-key is invalid (including when set to the api-key), an appropriate error is displayed. If the sess-key is set to "" or not set, the RPM is set to the default value. If the sess-key is valid and the connection is successful, the RPM is obtained from the webpage.

MaxZhongSheep avatar Nov 09 '23 08:11 MaxZhongSheep

Provide description and pictures of you updated . For easily understanding

martcpp avatar Nov 09 '23 08:11 martcpp

提供下对应的测试用例脚本或者examples

stellaHSR avatar Dec 11 '23 14:12 stellaHSR

Please resolve all conflicts and Review comments

geekan avatar Dec 21 '23 03:12 geekan