[PR #378] [MERGED] Enhance data type #461

Closed
opened 2026-02-15 19:17:46 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/378
Author: @leehuwuj
Created: 10/16/2024
Status: Merged
Merged: 10/17/2024
Merged by: @marcusschiesser

Base: mainHead: lee/enhance-code


📝 Commits (10+)

📊 Changes

21 files changed (+509 additions, -514 deletions)

View changed files

.changeset/selfish-tips-lie.md (+5 -0)
📝 templates/components/engines/python/agent/tools/interpreter.py (+12 -10)
📝 templates/components/engines/typescript/agent/tools/interpreter.ts (+9 -6)
📝 templates/components/llamaindex/typescript/documents/helper.ts (+14 -17)
📝 templates/components/llamaindex/typescript/documents/upload.ts (+19 -19)
📝 templates/components/llamaindex/typescript/streaming/annotations.ts (+12 -17)
📝 templates/components/routers/python/sandbox.py (+6 -2)
templates/components/services/python/file.py (+0 -198)
📝 templates/types/streaming/express/src/controllers/chat-upload.controller.ts (+4 -4)
📝 templates/types/streaming/fastapi/app/api/routers/chat_config.py (+36 -30)
📝 templates/types/streaming/fastapi/app/api/routers/models.py (+40 -56)
📝 templates/types/streaming/fastapi/app/api/routers/upload.py (+8 -10)
templates/types/streaming/fastapi/app/engine/utils/file_helper.py (+0 -83)
templates/types/streaming/fastapi/app/services/file.py (+300 -0)
📝 templates/types/streaming/nextjs/app/api/chat/upload/route.ts (+10 -6)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx (+5 -4)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-files.tsx (+1 -4)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx (+2 -2)
📝 templates/types/streaming/nextjs/app/components/ui/chat/hooks/use-file.ts (+6 -21)
📝 templates/types/streaming/nextjs/app/components/ui/chat/index.ts (+6 -11)

...and 1 more files

📄 Description

Summary by CodeRabbit

Release Notes

  • New Features

    • Enhanced file upload functionality with the introduction of the DocumentFile class, streamlining file metadata management and adding properties like size and type.
    • Updated file handling processes to improve clarity and consistency in metadata usage.
    • Improved document processing methods to directly utilize the new DocumentFile structure.
  • Bug Fixes

    • Corrected file path generation in the code interpreter's results saving process.
  • Documentation

    • Updated types and method signatures to reflect changes in file handling and metadata structures.
  • Refactor

    • Simplified file saving logic and metadata processing across various components for better performance and clarity.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/378 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 10/16/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `lee/enhance-code` --- ### 📝 Commits (10+) - [`7dcbf2f`](https://github.com/run-llama/create-llama/commit/7dcbf2fe6d41f17c0dee2a6c441b8358f31f5913) tmp - [`1e2502a`](https://github.com/run-llama/create-llama/commit/1e2502a88bb72749f704521b7652505019ee5c7a) update private file handler - [`e12bd29`](https://github.com/run-llama/create-llama/commit/e12bd298b55cd95388ecf9a247a23d38346f4023) enhance code - [`1cef23c`](https://github.com/run-llama/create-llama/commit/1cef23c0c211d683dc2480cd64a98a7518592bad) reduce complexity - [`5bd3591`](https://github.com/run-llama/create-llama/commit/5bd3591c919f5ca67285a55e78d0bcf14dc0fdec) fix mypy - [`c8a9472`](https://github.com/run-llama/create-llama/commit/c8a9472b9aad5be9fea7c20e91aa1057c68bf5a2) fix mypy - [`5fd25f6`](https://github.com/run-llama/create-llama/commit/5fd25f6f44173260d98ed0f800a0315763d95125) remove comment - [`a4d3d36`](https://github.com/run-llama/create-llama/commit/a4d3d36026fa7c578d4dcaf17174631a43686908) support upload file and enhance interpreter tool - [`6efadd4`](https://github.com/run-llama/create-llama/commit/6efadd4a40f73f5aa8cdcba125a4aeb566bff599) fix blocking stream event - [`3e82be7`](https://github.com/run-llama/create-llama/commit/3e82be7a86958768314151fe19fda166b86c3a5d) fix mypy ### 📊 Changes **21 files changed** (+509 additions, -514 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/selfish-tips-lie.md` (+5 -0) 📝 `templates/components/engines/python/agent/tools/interpreter.py` (+12 -10) 📝 `templates/components/engines/typescript/agent/tools/interpreter.ts` (+9 -6) 📝 `templates/components/llamaindex/typescript/documents/helper.ts` (+14 -17) 📝 `templates/components/llamaindex/typescript/documents/upload.ts` (+19 -19) 📝 `templates/components/llamaindex/typescript/streaming/annotations.ts` (+12 -17) 📝 `templates/components/routers/python/sandbox.py` (+6 -2) ➖ `templates/components/services/python/file.py` (+0 -198) 📝 `templates/types/streaming/express/src/controllers/chat-upload.controller.ts` (+4 -4) 📝 `templates/types/streaming/fastapi/app/api/routers/chat_config.py` (+36 -30) 📝 `templates/types/streaming/fastapi/app/api/routers/models.py` (+40 -56) 📝 `templates/types/streaming/fastapi/app/api/routers/upload.py` (+8 -10) ➖ `templates/types/streaming/fastapi/app/engine/utils/file_helper.py` (+0 -83) ➕ `templates/types/streaming/fastapi/app/services/file.py` (+300 -0) 📝 `templates/types/streaming/nextjs/app/api/chat/upload/route.ts` (+10 -6) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx` (+5 -4) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-files.tsx` (+1 -4) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-message/chat-sources.tsx` (+2 -2) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/hooks/use-file.ts` (+6 -21) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/index.ts` (+6 -11) _...and 1 more files_ </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced file upload functionality with the introduction of the `DocumentFile` class, streamlining file metadata management and adding properties like `size` and `type`. - Updated file handling processes to improve clarity and consistency in metadata usage. - Improved document processing methods to directly utilize the new `DocumentFile` structure. - **Bug Fixes** - Corrected file path generation in the code interpreter's results saving process. - **Documentation** - Updated types and method signatures to reflect changes in file handling and metadata structures. - **Refactor** - Simplified file saving logic and metadata processing across various components for better performance and clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:17:46 -05:00
yindo closed this issue 2026-02-15 19:17:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#461