mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Strip quotes from the response mode llm response
This commit is contained in:
@@ -323,7 +323,7 @@ async def aget_relevant_output_modes(query: str, conversation_history: dict, is_
|
|||||||
response = await send_message_to_model_wrapper(relevant_mode_prompt)
|
response = await send_message_to_model_wrapper(relevant_mode_prompt)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = response.strip()
|
response = response.strip().strip('"')
|
||||||
|
|
||||||
if is_none_or_empty(response):
|
if is_none_or_empty(response):
|
||||||
return ConversationCommand.Text
|
return ConversationCommand.Text
|
||||||
|
|||||||
Reference in New Issue
Block a user