Compare commits

...

2 commits

Author SHA1 Message Date
oobabooga
d47c8eb956 Remove quotes from LLM-generated websearch query (closes #7045).
Fix by @Quiet-Joker
2025-06-05 06:57:59 -07:00
oobabooga
977ec801b7 Improve table colors in instruct mode 2025-06-05 06:33:45 -07:00
2 changed files with 14 additions and 1 deletions

View file

@ -17,6 +17,14 @@
color: #d1d5db !important;
}
.chat .message-body :is(th, td) {
border-color: #40404096 !important;
}
.dark .chat .message-body :is(th, td) {
border-color: #ffffff75 !important;
}
.chat .message-body :is(p, ul, ol) {
margin: 1.25em 0 !important;
}

View file

@ -604,7 +604,12 @@ def generate_search_query(user_message, state):
query = ""
for reply in generate_reply(formatted_prompt, search_state, stopping_strings=[], is_chat=True):
query = reply.strip()
query = reply
# Strip and remove surrounding quotes if present
query = query.strip()
if len(query) >= 2 and query.startswith('"') and query.endswith('"'):
query = query[1:-1]
return query