refac
This commit is contained in:
@@ -3366,7 +3366,7 @@ async def non_streaming_chat_response_handler(response, ctx):
|
|||||||
await post_webhook(
|
await post_webhook(
|
||||||
request.app.state.WEBUI_NAME,
|
request.app.state.WEBUI_NAME,
|
||||||
webhook_url,
|
webhook_url,
|
||||||
f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}',
|
f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}',
|
||||||
{
|
{
|
||||||
'action': 'chat',
|
'action': 'chat',
|
||||||
'message': content,
|
'message': content,
|
||||||
@@ -4910,7 +4910,7 @@ async def streaming_chat_response_handler(response, ctx):
|
|||||||
await post_webhook(
|
await post_webhook(
|
||||||
request.app.state.WEBUI_NAME,
|
request.app.state.WEBUI_NAME,
|
||||||
webhook_url,
|
webhook_url,
|
||||||
f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}',
|
f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}',
|
||||||
{
|
{
|
||||||
'action': 'chat',
|
'action': 'chat',
|
||||||
'message': content,
|
'message': content,
|
||||||
|
|||||||
Reference in New Issue
Block a user