Skip to content

Commit 5f7895b

Browse files
Update function_app.py
1 parent db8941e commit 5f7895b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ClientAdvisor/AzureFunction/function_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ async def stream_openai_text(req: Request) -> StreamingResponse:
263263
Do not answer any questions not related to wealth advisors queries.
264264
If the client name and client id do not match, only return - Please only ask questions about the selected client or select another client to inquire about their details. do not return any other information.
265265
Only use the client name returned from database in the response.
266+
Always consider to give selected client full name only in response and do not use other example names also consider my client means currently selected client.
266267
If you cannot answer the question, always return - I cannot answer this question from the data available. Please rephrase or add more details.
267268
** Remove any client identifiers or ids or numbers or ClientId in the final response.
269+
Client name **must be** same as retrieved from database.
268270
'''
269271

270272
user_query = query.replace('?',' ')
@@ -280,4 +282,4 @@ async def stream_openai_text(req: Request) -> StreamingResponse:
280282
settings=settings
281283
)
282284

283-
return StreamingResponse(stream_processor(sk_response), media_type="text/event-stream")
285+
return StreamingResponse(stream_processor(sk_response), media_type="text/event-stream")

0 commit comments

Comments
 (0)