Open nsbradford opened 1 year ago
To have BitBuilder create a Pull Request with the implementation, the user who created the issue (@nsbradford) can comment below with "LGTM". If the plan is inaccurate, edit the issue description and write a comment with "replan".
/ui/shared/api.ts
file, add a new field sessionId
to the LLMChatCompletionRequest
interface. The sessionId
should be of type string
./ui/pages/index.tsx
file, modify the sendLLMRequest
function call inside the handleNewUserPrompt
function to pass the sessionId
along with the existing data./backend/models.py
file, add a new field sessionId
to the LLMChatCompletionRequest
class. The sessionId
should be of type str
./backend/main.py
file, modify the llm
endpoint to accept sessionId
as part of the request body. Update the llm_get
function call inside the llm
endpoint to pass the sessionId
along with the existing data./backend/llm.py
file, modify the llm_get
function to accept sessionId
as an argument. Update the metadata
object inside the acompletion
function call to include the sessionId
.Generated with :heart: by www.bitbuilder.ai. Questions? Check out our the documentation.
lgtm
Get sessionId from the frontend in
index.tsx
and pass it throughsendLLMRequest
inapi.ts
. Add metadata to llm endpoint inmain.py
and pass tollm.py
- you might have to editmodels.py
accordingly.