-
Notifications
You must be signed in to change notification settings - Fork 57
LCORE-784: Changing unsupported mime types to text/plain #716
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
LCORE-784: Changing unsupported mime types to text/plain #716
Conversation
WalkthroughThe pull request adds MIME-type normalization for document handling across both query and streaming query endpoints. Documents with application/json or application/xml MIME types are converted to text/plain before being sent to the Llama Stack agent. Corresponding test scenarios verify proper handling of XML and JSON attachments. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes The changes follow a consistent pattern across two endpoint files with straightforward MIME-type transformation logic. However, multiple affected files, new test scenarios, and the need to verify behavior consistency across both query variants add moderate complexity. Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (6)src/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/app/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/{app/**/*.py,client.py}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/app/endpoints/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
tests/e2e/features/**/*.feature📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (2)src/app/endpoints/query.py (1)
src/app/endpoints/streaming_query.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (5)
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 |
tisnik
left a comment
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.
LGTM
Description
This pull request temporarily converts application/json and application/xml MIME types to text/plain to prevent errors with the current Llama Stack implementation. This workaround will be removed once Llama Stack supports these MIME types.
Added e2e tests checking the successful response status if concerned attachment types are passed to query.
Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit
New Features
Tests