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

Small-cleanup-of-base-chat-component #412

Merged

Conversation

wonderwhy-er
Copy link
Collaborator

@wonderwhy-er wonderwhy-er commented Nov 25, 2024

Motivation:

The BaseChat component was growing too large and handling multiple responsibilities. This update improves maintainability by extracting functionality into dedicated files, allowing BaseChat to compose these components

Changes

  1. Extracted Components:

    • ExamplePrompts.tsx: Displays example prompts for quick actions.
    • ImportButton.tsx: Handles chat import functionality.
  2. File Renaming:

    • ExportChatButton.tsx moved to chatExportAndImport/ExportChatButton.tsx.

This is just small cleanup, step by step, more to do

@wonderwhy-er wonderwhy-er marked this pull request as ready for review November 25, 2024 07:47
@thecodacus
Copy link
Collaborator

Looks good.. shall we also move the ModelSelector to a new file?

@thecodacus thecodacus merged commit f8987be into coleam00:main Nov 25, 2024
1 check passed
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.

2 participants