AI Web Agent avatar

AI Web Agent

Try for free

No credit card required

Go to Store
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
10 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

  • 58 monthly users

  • 28 stars

  • 43% runs succeeded

  • 1.8 days response time

  • Created in Oct 2023

  • Modified 3 months ago

Categories