mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-16 03:04:21 -04:00
[PR #116] [MERGED] refactor: use annotations instead of data #265
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/create-llama/pull/116
Author: @marcusschiesser
Created: 6/6/2024
Status: ✅ Merged
Merged: 6/7/2024
Merged by: @marcusschiesser
Base:
main← Head:ms/use-annotations-as-state📝 Commits (10+)
d1d870drefactor: use annotations instead of data8477260clean up frontend - do not show available csv files anymore7e77ae0use annotations for express941664dadd message annotation for fastapibe8803frefactor: change export of use csv641db3eMerge branch 'ms/use-annotations-as-state' of github.com:run-llama/create-llama into ms/use-annotations-as-state8892750move reset to outside custom submit function62d192crename attachments to annotations160ed04Update templates/types/streaming/fastapi/app/api/routers/models.py7aa2f0dUpdate templates/types/streaming/fastapi/app/api/routers/models.py📊 Changes
8 files changed (+222 additions, -229 deletions)
View changed files
📝
templates/types/streaming/express/src/controllers/chat.controller.ts(+20 -16)📝
templates/types/streaming/express/src/controllers/llamaindex-stream.ts(+56 -32)📝
templates/types/streaming/fastapi/app/api/routers/models.py(+28 -14)📝
templates/types/streaming/nextjs/app/api/chat/llamaindex-stream.ts(+56 -32)📝
templates/types/streaming/nextjs/app/api/chat/route.ts(+20 -16)📝
templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx(+30 -49)📝
templates/types/streaming/nextjs/app/components/ui/chat/use-csv.ts(+11 -63)📝
templates/types/streaming/nextjs/app/components/ui/upload-csv-preview.tsx(+1 -7)📄 Description
data(avoids sending content twice)MessageContentDetail[]MessageContentDetailfrom previous messages (only pure string messages seem to be used), fallback to use annotation from last user messageSummary by CodeRabbit
Refactor
ChatInputcomponent by grouping related properties into a single object.useCsvhook to streamline state management and file handling.New Features
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.