send application info to prompt
This commit is contained in:
parent
538ea04aa5
commit
d61aac5813
2 changed files with 18 additions and 1 deletions
|
|
@ -16,11 +16,17 @@ async def insurance_chat(request: models.InsuranceChatRequest):
|
|||
if request.context and request.context.page:
|
||||
page_id = str(request.context.page).lower()
|
||||
current_page = await get_page_description(page_id)
|
||||
|
||||
application = None
|
||||
if request.context and request.context.application:
|
||||
application = request.context.application
|
||||
|
||||
result = await chat_service.process_insurance_chat(
|
||||
message=request.message,
|
||||
session_id=request.session_id,
|
||||
uid=str(request.userId),
|
||||
current_page=current_page,
|
||||
application=application,
|
||||
)
|
||||
|
||||
return models.InsuranceChatResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue