Added a new component ChatContextProvider in components/chat/chat-context-provider.tsx to provide chat context to its children.
Implemented the addMessageToChat function in ChatContextProvider to add messages to the chat.
Updated the ChatInput component in components/chat/chat-input.tsx to use the CopilotTextarea component from @copilotkit/copilotkit instead of TextareaAutosize.
Replaced the onValueChange prop with onChange in the CopilotTextarea component.
Added the context prop to the CopilotTextarea component to display the chat messages as context for AI-driven text completions.
Removed the minRows and maxRows props from the CopilotTextarea component.
Summary
Added ChatContextProvider component to provide chat context.
Implemented addMessageToChat function to add messages to the chat.
Updated ChatInput component to use CopilotTextarea for improved prompt input.
Removed unnecessary props from CopilotTextarea.
Fixes #4.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request includes the following changes:
ChatContextProvider
incomponents/chat/chat-context-provider.tsx
to provide chat context to its children.addMessageToChat
function inChatContextProvider
to add messages to the chat.ChatInput
component incomponents/chat/chat-input.tsx
to use theCopilotTextarea
component from@copilotkit/copilotkit
instead ofTextareaAutosize
.onValueChange
prop withonChange
in theCopilotTextarea
component.context
prop to theCopilotTextarea
component to display the chat messages as context for AI-driven text completions.minRows
andmaxRows
props from theCopilotTextarea
component.Summary
ChatContextProvider
component to provide chat context.addMessageToChat
function to add messages to the chat.ChatInput
component to useCopilotTextarea
for improved prompt input.CopilotTextarea
.Fixes #4.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: