-
Notifications
You must be signed in to change notification settings - Fork 4
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
[PARKED] Create /chat endpoint #412
base: main
Are you sure you want to change the base?
Conversation
@@ -13,23 +13,28 @@ | |||
|
|||
|
|||
async def get_llm_rag_answer( | |||
question: str, | |||
question: str | list[dict[str, str]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To undo
The question to ask the LLM model, or list of chat history messages in the form | ||
of {"content": str, "role": str}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To undo
@@ -7,8 +7,9 @@ | |||
|
|||
|
|||
async def _ask_llm_async( | |||
user_message: str, | |||
user_message: str | list[dict[str, str]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to undo
async def check_user_and_session_id( | ||
user_id: int, session_id: str, asession: AsyncSession | ||
) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anywhere yet. Should call this and raise appropriate error
294b796
to
8726dee
Compare
Reviewer:
Estimate:
Ticket
Fixes: -
Description
Creates a /chat endpoint
Goal
Changes
Future Tasks (optional)
How has this been tested?
To-do before merge (optional)
Checklist
Fill with
x
for completed.(Delete any items below that are not relevant)
scripts/
.github/workflows/