mirror of
https://github.com/zebrajr/ollama-webui.git
synced 2025-12-06 12:19:46 +01:00
refac
This commit is contained in:
parent
f373784aaf
commit
a730a277b9
|
|
@ -1505,8 +1505,8 @@ async def process_chat_response(
|
||||||
)
|
)
|
||||||
|
|
||||||
follow_ups_string = response_message.get(
|
follow_ups_string = response_message.get(
|
||||||
"content", response_message.get("reasoning_content", "")
|
"content"
|
||||||
)
|
) or response_message.get("reasoning_content", "")
|
||||||
else:
|
else:
|
||||||
follow_ups_string = ""
|
follow_ups_string = ""
|
||||||
|
|
||||||
|
|
@ -1569,12 +1569,12 @@ async def process_chat_response(
|
||||||
"message", {}
|
"message", {}
|
||||||
)
|
)
|
||||||
|
|
||||||
title_string = response_message.get(
|
title_string = (
|
||||||
"content",
|
response_message.get("content")
|
||||||
response_message.get(
|
or response_message.get(
|
||||||
"reasoning_content",
|
"reasoning_content",
|
||||||
message.get("content", user_message),
|
)
|
||||||
),
|
or message.get("content", user_message)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
title_string = ""
|
title_string = ""
|
||||||
|
|
@ -1633,9 +1633,8 @@ async def process_chat_response(
|
||||||
)
|
)
|
||||||
|
|
||||||
tags_string = response_message.get(
|
tags_string = response_message.get(
|
||||||
"content",
|
"content"
|
||||||
response_message.get("reasoning_content", ""),
|
) or response_message.get("reasoning_content", "")
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
tags_string = ""
|
tags_string = ""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user