-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: maxTokens not used #3013
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
fix: maxTokens not used #3013
Conversation
@dingdinglz is attempting to deploy a commit to the Onlook Team on Vercel.
A member of the Team first needs to authorize it.
WalkthroughAdds the maxOutputTokens parameter to the streamText call within createRootAgentStream, sourcing its value from modelConfig.maxOutputTokens. No other logic or control-flow changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller
participant RootAgent
participant TextStreamer as streamText
Caller->>RootAgent: createRootAgentStream(modelConfig)
Note right of RootAgent: Extract maxOutputTokens from modelConfig
RootAgent->>TextStreamer: streamText({... , maxOutputTokens})
TextStreamer-->>RootAgent: Streamed text chunks
RootAgent-->>Caller: Forward streamed output
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
{apps,packages}/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Uh oh!
There was an error while loading. Please reload this page.
Description
maxOutputTokens set but never used
Type of Change
Important
Fix missing
maxOutputTokens
parameter instreamText
call increateRootAgentStream
inroot.ts
.maxOutputTokens: modelConfig.maxOutputTokens
tostreamText
call increateRootAgentStream
inroot.ts
to ensure token limit is applied.This description was created by Ellipsis for 7e42a07. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit