JudiniLabs / code-gpt-docs

Docusaurus page
https://code-gpt-docs.vercel.app
MIT License
584 stars 64 forks source link

max_token error when using OpenIA provider #284

Open lucaslrodri opened 5 months ago

lucaslrodri commented 5 months ago

Im receiving bellow error when i use any model from OpenAI provider.

I'm receiving bellow error when I use any model from OpenAI provider, even if I use a prompt like a simple Hello, how are you? (With no code selection input).

400 max_tokens is too large: 6000. This model supports at most 4096 completion tokens, whereas you provided 6000.

max_token error

Code completion is working normaly.

Adel242 commented 5 months ago

@lucaslrodri You can try changing the Token limit setting by going to your "chat settings" menu. Every model has a Token limit it can accept, which is essentially a character limit. Your error seems to be that you have a configuration exceeding these Token limits for the model you've selected.