-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
120 add token limit #127
120 add token limit #127
Conversation
This pull request includes several changes to improve error handling and validation in the API endpoints. The most important changes involve adding content length and file size validations, and enhancing error responses. Error handling and validation improvements:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/routes/api/template/[id]/resource/+server.ts:57
- The error message 'File size limit exceeded' is unclear. It should specify the limit, e.g., 'File size limit exceeded. Maximum allowed size is 10MB.'
return json({ error: 'File size limit exceeded' }, { status: 400 });
src/routes/api/session/[id]/group/[group_number]/conversations/[conv_id]/chat/+server.ts
Outdated
Show resolved
Hide resolved
…/[conv_id]/chat/+server.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.