Closed thucpn closed 2 months ago
Latest commit: bfde30deed7a249416aeb550de15435b9854ee4c
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates introduce a new getNodeUrl
function across multiple components to streamline URL handling based on metadata. This enhancement affects various parts of the codebase, including Express, FastAPI, and Next.js implementations. Additionally, a typo in the type declaration within the TypeScript interpreter tool has been corrected. These changes collectively improve the handling of URLs and file paths, ensuring consistency and accuracy across different modules.
File/Path | Change Summary |
---|---|
.../stream-helper.ts |
Added getNodeUrl function for metadata-based URL retrieval and updated appendSourceData to use this URL. |
.../routers/chat.py |
Added import for os and logging , introduced an optional url field in _SourceNodes , and updated from_source_node method. |
.../components/ui/chat/chat-sources.tsx |
Removed getStaticFileDataUrl import, updated getNodeInfo and onClick handler to use node.url . |
.../components/ui/chat/index.ts |
Added optional url field to SourceNode interface. |
.../interpreter.ts |
Corrected typo in type declaration from InterpreterToolOuput to InterpreterToolOutput and updated references. |
.../components/ui/chat/widgets/PdfDialog.tsx |
Removed path property from PdfDialogProps , changed "File path" to "File URL", and updated references to props.path to props.url . |
In code's vast field, URLs align,
From paths to links, they intertwine.
WithgetNodeUrl
, we now refine,
Each node's true path, a clear design.
Interpreter's typo, now benign,
Our code's new flow, a sleek skyline.
🌟✨🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
UI Changes