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.

Do you want to learn more about this Actor?

Get a demo
AB

GPT-4 maximum context tokens exceeded

Closed

accomplished_bureau opened this issue
9 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?

paja 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?

zenisjan avatar

Hello there,

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

Cheers, Jan

paja 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
  • 42 monthly users
  • 26 stars
  • 48.5% runs succeeded
  • 14 days response time
  • Created in Oct 2023
  • Modified about 2 months ago
Categories