MetaGPT
MetaGPT copied to clipboard
update get rpm from api.openai.com
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.
Provide description and pictures of you updated . For easily understanding
提供下对应的测试用例脚本或者examples
Please resolve all conflicts and Review comments