Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

"This model's maximum context length is 4096 tokens. However, you requested 4258 tokens (3234 in the messages, 1024 in the completion). Please reduce the length of the messages or completion."

How do i raise the max amount of tokens?

(1 edit)

you have to use an AI model with more memory here’s a guide: https://fierylion.itch.io/formamorph/devlog/885513/quick-setup-guide-free-openrouter-setup

For a QUICK fix you can(and should) reduce the Max Output Tokens in the game settings to 256, this makes the game write shorter paragraph, but also give a lot more memory back.

do you recommend any AI's? i tried using LM studio for AI but it ate up way too much memory and gpu and the AI [qwen2.5-7b-instruct-uncensored] was practically a snail, should i use the AI that's in the guide or is there another you might recommend?

can you not create an OpenRouter account? its free, mistral nemo free model has 128K memory