-
Notifications
You must be signed in to change notification settings - Fork 8
Refactor and Enhancements to Chat Components #73
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…mponent I will go back to this to use AI streaming components from vercel
refactor: Update ExamnSuggestions component to use ExamSuggestion interface This commit updates the ExamnSuggestions component to use the correct interface name, ExamSuggestion, instead of ExamnSuggestion. This ensures consistency and clarity in the codebase. The component now correctly references the ExamSuggestion interface for the suggestions prop.
This commit updates the ChatWindow and ChatInput components in the Common/chat directory. In ChatWindow: - Added a check to skip rendering the first message in the messages array. - Adjusted the padding values for different screen sizes. In ChatInput: - Added two template buttons for generating exam forms and asking for suggestions. - Updated the form submission logic to handle the template buttons. - Added a new prop, isTemplatePresent, to conditionally render the template buttons. These changes enhance the functionality and user experience of the chat feature in the application.
This commit updates the layout of the FreeChatPage component in the app/dashboard/student/chat/[chatId]/free-chat directory. The changes include adjusting the height calculation for the chat container to ensure it fills the entire viewport on all screen sizes. This improvement enhances the user experience by providing a consistent and visually appealing chat interface.
This commit updates the layout of the chat page in the app/dashboard/student/chat/[chatId]/layout.tsx file. The changes include adjusting the padding values and container size to improve the visual appearance and spacing of the chat interface. These updates enhance the user experience by providing a more visually appealing and user-friendly chat layout.
…oute.ts This commit adds a temperature property with a value of 0.5 to the POST function in the chat/student/route.ts file. The temperature property is used to control the randomness of the AI-generated responses in the chat feature. This addition enhances the functionality of the chat system by allowing for more controlled and predictable AI responses.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several refactorings and enhancements to the chat components in the codebase. The changes improve the functionality, layout, and user experience of the chat feature.
The specific changes include:
Changing the role from 'system' to 'assistant' in the TaksMessages component.
Fixing a typo in the ExamPrepChat component.
Improving the layout and removing unused code in the loading components.
Updating the ExamnSuggestions component to use the correct interface name, ExamSuggestion, instead of ExamnSuggestion.
Fixing a typo in the CommentsCard component.
Updating the ChatWindow and ChatInput components in the Common/chat directory to enhance functionality and user experience.
Fixing a typo in the CommentsSections component.
Updating the layout of the FreeChatPage component in the app/dashboard/student/chat/[chatId]/free-chat directory.
Updating the layout of the chat page for better user experience.
Adding a temperature property to the POST function in the chat/student/route.ts file to control the randomness of AI-generated responses.
Updating the FreeChatPage component layout to ensure it fills the entire viewport on all screen sizes.
Updating the layout of the chat page in the app/dashboard/student/chat/[chatId]/layout.tsx file to improve visual appearance and spacing.
Adding a temperature property with a value of 0.5 to the POST function in the chat/student/route.ts file to enhance the functionality of the chat system.
Updating the ExamnSuggestions component to use the correct interface name, ExamSuggestion, instead of ExamnSuggestion.
These changes enhance the functionality, layout, and user experience of the chat feature in the application.