[PR #98] [MERGED] feat: construct resource url from backend #250

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/98
Author: @thucpn
Created: 5/24/2024
Status: Merged
Merged: 5/28/2024
Merged by: @leehuwuj

Base: mainHead: feat/construct-resource-url-from-backend


📝 Commits (5)

  • 48188ca feat: construct resource url from backend
  • ddf3aef remove node path
  • 81bc340 add warning when no file server url prefix
  • 96fdb83 use logger warning
  • bfde30d move logger to global scope

📊 Changes

8 files changed (+68 additions, -64 deletions)

View changed files

📝 templates/components/engines/typescript/agent/tools/interpreter.ts (+4 -4)
📝 templates/types/streaming/express/src/controllers/stream-helper.ts (+17 -0)
📝 templates/types/streaming/fastapi/app/api/routers/chat.py (+17 -1)
📝 templates/types/streaming/nextjs/app/api/chat/stream-helper.ts (+17 -0)
📝 templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx (+10 -45)
📝 templates/types/streaming/nextjs/app/components/ui/chat/index.ts (+1 -0)
📝 templates/types/streaming/nextjs/app/components/ui/chat/widgets/PdfDialog.tsx (+2 -3)
templates/types/streaming/nextjs/app/components/ui/lib/url.ts (+0 -11)

📄 Description

Summary by CodeRabbit

  • New Features

    • Added support for handling URLs in various components and functions, enhancing the flexibility of data processing and UI components.
  • Bug Fixes

    • Corrected a typo in a type declaration to ensure accurate type references in the code.
  • Improvements

    • Updated chat components to use URLs instead of file paths, improving consistency and usability.
    • Enhanced metadata processing for URLs, providing more robust data handling.
  • UI Changes

    • Changed "File path" to "File URL" in the PdfDialog component for better 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/98 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 5/24/2024 **Status:** ✅ Merged **Merged:** 5/28/2024 **Merged by:** [@leehuwuj](https://github.com/leehuwuj) **Base:** `main` ← **Head:** `feat/construct-resource-url-from-backend` --- ### 📝 Commits (5) - [`48188ca`](https://github.com/run-llama/create-llama/commit/48188ca3f999e6f9beece00d9459a7896a471146) feat: construct resource url from backend - [`ddf3aef`](https://github.com/run-llama/create-llama/commit/ddf3aef7dcfb2bf2d102a04ea8e2a22cea201909) remove node path - [`81bc340`](https://github.com/run-llama/create-llama/commit/81bc340ddaaf01a43f714c3b2b9a62911d2a94d7) add warning when no file server url prefix - [`96fdb83`](https://github.com/run-llama/create-llama/commit/96fdb83abff69aa650a76cb847299c517caa7e1b) use logger warning - [`bfde30d`](https://github.com/run-llama/create-llama/commit/bfde30deed7a249416aeb550de15435b9854ee4c) move logger to global scope ### 📊 Changes **8 files changed** (+68 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `templates/components/engines/typescript/agent/tools/interpreter.ts` (+4 -4) 📝 `templates/types/streaming/express/src/controllers/stream-helper.ts` (+17 -0) 📝 `templates/types/streaming/fastapi/app/api/routers/chat.py` (+17 -1) 📝 `templates/types/streaming/nextjs/app/api/chat/stream-helper.ts` (+17 -0) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx` (+10 -45) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/index.ts` (+1 -0) 📝 `templates/types/streaming/nextjs/app/components/ui/chat/widgets/PdfDialog.tsx` (+2 -3) ➖ `templates/types/streaming/nextjs/app/components/ui/lib/url.ts` (+0 -11) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for handling URLs in various components and functions, enhancing the flexibility of data processing and UI components. - **Bug Fixes** - Corrected a typo in a type declaration to ensure accurate type references in the code. - **Improvements** - Updated chat components to use URLs instead of file paths, improving consistency and usability. - Enhanced metadata processing for URLs, providing more robust data handling. - **UI Changes** - Changed "File path" to "File URL" in the PdfDialog component for better 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:16:54 -05:00
yindo closed this issue 2026-02-15 19:16:54 -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#250