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

Added ModelProviderMenu component and reused it in PromptsendButton and MessageBase #729

Closed
wants to merge 7 commits into from

Conversation

hpatel292-seneca
Copy link
Collaborator

@hpatel292-seneca hpatel292-seneca commented Nov 15, 2024

This fixes #643.

Added a reusable component, ModelProviderMenu, and replaced the logic in PromptSendButton and MessageBase to utilize this component.

Overview of Changes:

  1. Added a new component:
    ModelProviderMenu contains the logic for displaying models and providers, allowing the user to change models and providers directly from it.

  2. Updated PromptSendButton:
    Replaced the existing menu logic in PromptSendButton with the ModelProviderMenu component. This menu appears next to the send button.

  3. Updated MessageBase:
    Refactored the retry logic in MessageBase to use the ModelProviderMenu component, ensuring consistency and reusability.

Demo

2024-11-15.11-20-17.mp4

@hpatel292-seneca hpatel292-seneca marked this pull request as ready for review November 15, 2024 15:54
@tarasglek tarasglek requested a review from humphd November 15, 2024 17:10
@tarasglek
Copy link
Owner

@hpatel292-seneca i added you as a dev to chatcraft. Can you please accept the invite...and open a new pull req from a branch incide chatcraft repo, this way we can get a nice cloudflare preview url

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.

Re-use features from Ask menu in Retry sub-menu
2 participants