Skip to content

fix: configure chat message length limit - #930

Open
ashaarvan17 wants to merge 1 commit into
parthbuilds-community:mainfrom
ashaarvan17:fix-issue
Open

fix: configure chat message length limit#930
ashaarvan17 wants to merge 1 commit into
parthbuilds-community:mainfrom
ashaarvan17:fix-issue

Conversation

@ashaarvan17

Copy link
Copy Markdown

Summary

  • Increased the default chat message limit to 4000 characters
  • Added CHAT_MAX_MESSAGE_LENGTH environment variable support
  • Added fallback handling for invalid configuration values
  • Removed API key prefix logging from server startup

Testing

  • Verified messages around 1500 characters are accepted
  • Verified the configured 4000-character limit is enforced
  • Verified invalid/missing configuration falls back to the default
  • Verified startup logs only show whether Gemini AI is configured
  • Verified no API key characters are logged

@github-actions github-actions Bot added enhancement New feature or request refactor Improve code without changing functionality security Security improvements and vulnerability fixes backend labels Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend enhancement New feature or request refactor Improve code without changing functionality security Security improvements and vulnerability fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant