#Problem

13 messages · Page 1 of 1 (latest)

knotty basin
#

my ai bot keeps reaching 2000 characters long and it causes the bot to stop responding

timber harborBOT
#

I'm an AI assistant - my answers may be incorrect and I cannot see screenshots. Please verify information with the OpenRouter docs.

To help you resolve this, I need a bit more information:

  1. What is the exact error message or failure response you receive when the bot stops?
  2. Which specific model (including full identifier, e.g., openai/gpt-4o-mini, anthropic/claude-3.7-sonnet, etc.) are you using?
  3. Are you setting any parameters like max_tokens or using reasoning features in your API request? If possible, paste the relevant part of your code or payload.

These details will help diagnose whether this is a context length, token limit, or model-specific setting issue.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.

The author you are looking for could not be found.

knotty basin
#

i have 2 bots the use different models

#

z-ai/glm-4.5-air:free

timber harborBOT
#

Thanks for clarifying. To help with your issue where both bots (using different models) stop responding after reaching 2000 characters, I need a bit more detail:

  1. What are the exact model identifiers each bot is using (e.g., openai/gpt-4o, deepseek/deepseek-chat-v3.1, etc.)?
  2. What is the exact error message, API response, or behavior you see when the bots stop?
  3. Are you setting any explicit max_tokens or similar parameters in your API calls?

Knowing the specific models and parameters is important because each model can have different context and output limits. You can review model-specific limits at OpenRouter Models. Please provide these details so I can help you further.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.

The author you are looking for could not be found.

#

The model z-ai/glm-4.5-air:free supports a very large context window (131,072 tokens) and does not have a 2,000 character limit per the documentation. If your bot is stopping at 2,000 characters, this is likely caused by a limit set in your own application code or the platform you're using—not by the model itself.

The official docs state:
"Max Tokens (input + output) 131K"
GLM 4.5 Air (free) - API

What to check:

  • Make sure your API request does not set a low max_tokens value.
  • Check your bot's code or platform for any manual character or token limits.
  • Ensure you are not truncating or cutting off the model output in your message handling logic.

If you share your API request code or explain where the 2,000 character limit is enforced, I can help pinpoint the exact cause. For more on configuring output length, see the GLM 4.5 Air docs.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.

GLM-4.5-Air is the lightweight variant of our latest flagship model family, also purpose-built for agent-centric applications. Run GLM 4.5 Air (free) with API

GLM-4.5-Air is the lightweight variant of our latest flagship model family, also purpose-built for agent-centric applications. Run GLM 4.5 Air with API

knotty basin
#

and google/gemma-3-27b-it:free

#

can u fix the message thing for 2k characters

#

@timber harbor

random vigil
#

have you tried setting the max tokens parameter?

opal pulsar
knotty basin
#

its the discord word limit