Commit 8203459

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-04-03 09:15:20
style(gpt): use full title of the search result in the response
1 parent 9c33e09
Changed files (1)
src
src/llm/utils.py
@@ -141,7 +141,7 @@ def add_search_results_to_response(search_results: list[dict], response: str) ->
         return response
     response = response.strip()
     for idx, result in enumerate(search_results):
-        title = result.get("title", "")[:20]
+        title = result.get("title", "")
         link = result.get("link", "")
         if link.startswith("http") and f"({link})" in response:
             response += f"\n{number_to_emoji(idx + 1)} [{title}]({link})"