lavague-ai / LaVague

Large Action Model framework to develop AI Web Agents
https://docs.lavague.ai/en/latest/
Apache License 2.0
5.49k stars 505 forks source link

lavague-tests unclear error message #503

Open lyie28 opened 3 months ago

lyie28 commented 3 months ago

Error messages from APIs such as:

anthropic.RateLimitError: Error code: 429 - {'type': 'error', 'error': {'type': 'rate_limit_error', 'message': 'Number of request tokens has exceeded your daily rate limit (https://docs.anthropic.com/en/api/rate-limits); see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.'}}

Are displayed in lavague-tests as this, which makes it very difficult to quickly see what the issue is: 2024-07-29 18:42:01,954 - ERROR - Error while running the agent: Invalid payload! Need prompt and completion or messages and response.