"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?
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.