Add Session ID to FrontendThe changes in the file '/ui/pages/index.tsx' correctly implement the first step of the plan. The 'handleNewUserPrompt' function has been modified to include the 'sessionId' in the payload being sent to the 'postQuery' and 'sendLLMRequest' functions.
2
✅
Modify API Functions to Accept Session IDThe changes in the file '/ui/shared/api.ts' correctly implement the second step of the plan. The 'postQuery' and 'sendLLMRequest' functions have been modified to accept an additional 'sessionId' parameter in their payloads.
3
✅
Add Session ID to Backend APIThe changes in the file '/backend/main.py' correctly implement the third step of the plan. The 'llm' function has been modified to accept an additional 'sessionId' parameter in the request payload. The 'sessionId' is then passed to the 'llm_get' function.
4
✅
Modify llm_get Function to Accept Session IDThe changes in the file '/backend/llm.py' correctly implement the fourth step of the plan. The 'llm_get' function has been modified to accept an additional 'sessionId' parameter. The 'sessionId' is then included in the 'metadata' parameter of the 'acompletion' function call.
Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #20. Then, add the bitbuilder:create label to try again. For more information, check the documentation.
Summary:
Issue: https://github.com/nsbradford/SemanticSearch/issues/20
This pull request does ...
Implementation:
Add Session ID to Frontend
The changes in the file '/ui/pages/index.tsx' correctly implement the first step of the plan. The 'handleNewUserPrompt' function has been modified to include the 'sessionId' in the payload being sent to the 'postQuery' and 'sendLLMRequest' functions.Modify API Functions to Accept Session ID
The changes in the file '/ui/shared/api.ts' correctly implement the second step of the plan. The 'postQuery' and 'sendLLMRequest' functions have been modified to accept an additional 'sessionId' parameter in their payloads.Add Session ID to Backend API
The changes in the file '/backend/main.py' correctly implement the third step of the plan. The 'llm' function has been modified to accept an additional 'sessionId' parameter in the request payload. The 'sessionId' is then passed to the 'llm_get' function.Modify llm_get Function to Accept Session ID
The changes in the file '/backend/llm.py' correctly implement the fourth step of the plan. The 'llm_get' function has been modified to accept an additional 'sessionId' parameter. The 'sessionId' is then included in the 'metadata' parameter of the 'acompletion' function call.Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #20. Then, add the
bitbuilder:create
label to try again. For more information, check the documentation.Generated with :heart: by www.bitbuilder.ai