AI Web Agent avatar
AI Web Agent
Try for free

No credit card required

View all Actors
AI Web Agent

AI Web Agent

apify/ai-web-agent
Try for free

No credit card required

Use natural language prompts to browse the web, click on elements, fill and submit forms, extract data, and take screenshots using the OpenAI API.

User avatar

GPT-4 maximum context tokens exceeded

Closed

accomplished_bureau opened this issue
3 months ago

I am trying to run GPT-4 with an instruction, but it fails with the error message: 2024-02-09T13:27:00.414Z message: "This model's maximum context length is 8192 tokens. However, your messages resulted in 8892 tokens (8534 in the messages, 358 in the functions). Please reduce the length of the messages or functions." GPT-3.5 runs it without a problem though. Can you fix this for GPT-4 please, or let me know what can I do to decrease context tokens?

User avatar

Hi, thanks for your patience, we'll discuss it in the team and let you know if there's anything what can be done. Do you think you could share the problematic run with us?

User avatar

Hello there,

Please try GPT-4 106K model. That should fix it.

Cheers, Jan

User avatar

Hi again, I'm going to close the issue for now, but if there's anything else we can help you with, please let us know.

Developer
Maintained by Apify
Actor metrics
  • 85 monthly users
  • 60.4% runs succeeded
  • 10 days response time
  • Created in Oct 2023
  • Modified 6 months ago
Categories