apify / actor-web-automation-agent

This is the experimental version of Web Automation Agent. The agent uses natural language instructions to browse the web and extract data.
https://apify.com/apify/ai-web-agent
17 stars 15 forks source link

Improve status message #23

Open drobnikj opened 6 months ago

drobnikj commented 6 months ago

Propagate OpenAI API errors into Actor status messages.

For errors like

2023-11-30T16:09:50.196Z BadRequestError: This model's maximum context length is 16385 tokens. However, your messages resulted in 18178 tokens (17820 in the messages, 358 in the functions). Please reduce the length of the messages or functions.

exits Actor with status messages explaining OpenAI error.

see issue in slack