Du Mingzhe
commited on
Commit
•
2f19e0d
1
Parent(s):
1f076f8
Update test
Browse files- components.py +2 -1
components.py
CHANGED
@@ -24,7 +24,8 @@ class LLMClient():
|
|
24 |
# Session History
|
25 |
messages += [{"role": h["role"], "content": h["content"]} for h in history[:-1]]
|
26 |
|
27 |
-
messages += [{"role": 'user', "content": f"Given the context, generate a proper web search query. If you know the answer already, return 'None' directly."}]
|
|
|
28 |
|
29 |
response = self.llm_client.chat.completions.create(
|
30 |
model = self.model_name,
|
|
|
24 |
# Session History
|
25 |
messages += [{"role": h["role"], "content": h["content"]} for h in history[:-1]]
|
26 |
|
27 |
+
# messages += [{"role": 'user', "content": f"Given the context, generate a proper web search query. If you know the answer already, return 'None' directly."}]
|
28 |
+
messages += [{"role": 'user', "content": f"Given the context, generate a proper web search query."}]
|
29 |
|
30 |
response = self.llm_client.chat.completions.create(
|
31 |
model = self.model_name,
|