-
Notifications
You must be signed in to change notification settings - Fork 357
streamfix #2530
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
Conversation
…penai responses bug, and vertex anthropic streaming
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
🌿 Preview your docs: https://boundary-preview-bc7c9a2c-4ea8-4911-9d88-17843d12f7e8.docs.buildwithfern.com |
|
🔒 Entelligence AI Vulnerability Scanner ✅ No security vulnerabilities found! Your code passed our comprehensive security analysis. 📊 Files Analyzed: 3 files |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Review Summary🏷️ Draft Comments (11)
🔍 Comments beyond diff scope (3)
|
| Ok(response) => response, | ||
| Err(e) => { | ||
| tracing::error!("Failed to check BAML source upload status: {}", e); | ||
| tracing::warn!("Failed to check BAML source upload status: {}", e); |
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.
correctness: process_baml_src_upload_impl downgrades all BAML source upload check failures to warn, which may hide critical errors (e.g., authentication failures) that should abort publishing and not be silently ignored.
🤖 AI Agent Prompt for Cursor/Windsurf
📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue
In engine/baml-runtime/src/tracingv2/publisher/publisher.rs, line 550, the code downgrades all errors from the BAML source upload check to a warning. This can hide critical issues (like authentication failures) that should abort publishing. Change the log level from warn back to error to ensure critical failures are not silently ignored.
📝 Committable Code Suggestion
‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.
| tracing::warn!("Failed to check BAML source upload status: {}", e); | |
| tracing::error!("Failed to check BAML source upload status: {}", e); |
|
🌿 Preview your docs: https://boundary-preview-299044c6-e530-4623-ab9c-9c019a12d5e8.docs.buildwithfern.com |
Note
Refactors streaming to parse/deliver partials reliably, corrects OpenAI Responses message/media formatting, enables Anthropic-on-Vertex streaming, and improves playground cURL preview/copy behavior.
ParserState; emit deduped partials viawatchsnapshots.ErrorCode::Other(2), message) and cancellation handling.input_text,input_imagewithdetail: auto,input_filewithfilename), disallow assistant media, and add unit test for mixed text+file.ResponseType::Anthropicwhenanthropic_versionis set and setstream: truein request body.debug.errortowarn.curlAtom, memoize highlighter, retain last cURL during loading, and support copying cURL when cURL tab is active.Written by Cursor Bugbot for commit 2181a28. This will update automatically on new commits. Configure here.