fix: increase Vercel maxDuration to 300s for AI chat operations#1062
Merged
fix: increase Vercel maxDuration to 300s for AI chat operations#1062
Conversation
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/7c1dd70f-35cf-43ee-acb1-9d8d0c82e5b6 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Claude created this pull request from a session on behalf of
hotlong
April 2, 2026 09:42
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Increases the Vercel Serverless Function timeout for the Studio API to prevent play.objectstack.ai/api/v1/ai/chat from timing out during longer AI chat sessions with tool-calling and agent iteration.
Changes:
- Increase Vercel
maxDurationforapi/**/*.jsfrom 60s to 300s.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI chat endpoint timing out after 60 seconds on Vercel deployment (
play.objectstack.ai/api/v1/ai/chat).Changes
apps/studio/vercel.json: IncreasedmaxDurationfrom 60s to 300s (5 minutes)Context
AI chat operations with tool calling frequently exceed 60s due to:
maxIterations)300s provides sufficient headroom while staying within Vercel Enterprise tier limits (900s max).