Skip to content
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

feat: Migrating from RSC to UI #399

Merged
merged 51 commits into from
Jan 15, 2025
Merged

feat: Migrating from RSC to UI #399

merged 51 commits into from
Jan 15, 2025

Conversation

miurla
Copy link
Owner

@miurla miurla commented Jan 15, 2025

ref: #368

Breaking Changes: Chat History and Share Feature Updates

Changes in Chat History Storage

Optional Chat History

  • Chat history storage is now optional
  • Enable with NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY=true
  • Check .env.example for configuration details

Share Feature Update

  • Share functionality is now controlled by NEXT_PUBLIC_ENABLE_SHARE=true
  • Updated environment variable configuration
  • See .env.example for setup

Data Migration Notice

Storage Schema Changes

  • Chat history data structure has been updated
  • Data is now stored with a new key format
  • Previous data format is not compatible with the new version

Migration Required

⚠️ If you need to access chat history from previous versions, data migration is required.

Action Required

  1. Review .env.example for new configuration options
  2. Update your environment variables accordingly
  3. Migrate existing data if needed (previous chat history will not be displayed without migration)

Please refer to the documentation for detailed configuration instructions.

miurla added 30 commits January 2, 2025 09:01
- Added a new guideline for citing sources using the [number](url) format
- Added a guideline for using markdown to structure responses
- Added a guideline for including relevant images to support explanations
- Added a guideline to use the retrieve tool only with user-provided URLs
- Updated the existing guideline for being concise and direct in responses
Refactor the chat route and components to include functionality for selecting the model from a cookie. If a model is not selected from the cookie, the default model 'openai:gpt-4o-mini' is used. This change ensures consistent message display and improves the user experience.
feat: save chat with related questions after completion
refactor: unify message rendering pattern for tools and annotations
…stions

- Refactor the chat route to include saving the complete response and related questions.
- Add the ability to convert messages to extended core messages for saving annotations.
- Update the POST method to handle extended core messages and save them.
- Enable the conversion of messages to extended core messages in the utils module.
miurla added 21 commits January 11, 2025 11:12
refactor: Update Chat component to include query parameter
feat: improve error handling in chat API route
refactor: standardize useChat hook ID usage
style: enhance UI components with animations and visual improvements
Update .env.local.example with improved documentation and structure
docs: reorganize documentation and improve clarity
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 7:34am

@miurla miurla merged commit 3dc6a87 into main Jan 15, 2025
2 checks passed
@miurla miurla deleted the feat/migration-v0.3.0 branch January 15, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant