This pull request updates the chatbot UI to integrate with FastAPI. The changes include removing hardcoded example messages and replacing them with a call to a FastAPI method to get results based on task description, code snippet, and task type.
Summary
Removed hardcoded example messages in components/chat-panel.tsx.
Added a useEffect hook to call a FastAPI method and set the messages based on the results.
The FastAPI method is called with taskDescription, codeSnippet, and taskType as parameters.
The submitUserMessage function now also takes taskDescription, codeSnippet, and taskType as parameters.
Fixes #2.
π 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 updates the chatbot UI to integrate with FastAPI. The changes include removing hardcoded example messages and replacing them with a call to a FastAPI method to get results based on task description, code snippet, and task type.
Summary
components/chat-panel.tsx
.useEffect
hook to call a FastAPI method and set the messages based on the results.taskDescription
,codeSnippet
, andtaskType
as parameters.submitUserMessage
function now also takestaskDescription
,codeSnippet
, andtaskType
as parameters.Fixes #2.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: