nothing
This commit is contained in:
+4
-4
@@ -131,9 +131,9 @@ async def nanobot_chat(request: ChatRequest):
|
||||
# Inject instructions if explicitly routed
|
||||
message = request.message
|
||||
if request.route_mode == "sql" or request.prefer_sql_chart:
|
||||
message = f"[System: User explicitly requested data analysis. Please use the nl2sql tool to answer the following query.]\n{message}"
|
||||
message = f"[System: Use the nl2sql tool to answer the query]\n{message}"
|
||||
elif request.route_mode == "chat":
|
||||
message = f"[System: User explicitly requested normal chat. Do NOT use the nl2sql tool.]\n{message}"
|
||||
message = f"[System: Normal chat mode. Do NOT use the nl2sql tool]\n{message}"
|
||||
|
||||
response = await nanobot_service.process_message(
|
||||
message,
|
||||
@@ -182,9 +182,9 @@ async def nanobot_chat_stream(request: ChatRequest):
|
||||
# Inject instructions if explicitly routed
|
||||
message = request.message
|
||||
if request.route_mode == "sql" or request.prefer_sql_chart:
|
||||
message = f"[System: User explicitly requested data analysis. Please use the nl2sql tool to answer the following query.]\n{message}"
|
||||
message = f"[System: Use the nl2sql tool to answer the query]\n{message}"
|
||||
elif request.route_mode == "chat":
|
||||
message = f"[System: User explicitly requested normal chat. Do NOT use the nl2sql tool.]\n{message}"
|
||||
message = f"[System: Normal chat mode. Do NOT use the nl2sql tool]\n{message}"
|
||||
|
||||
current_task = asyncio.create_task(
|
||||
nanobot_service.process_message(
|
||||
|
||||
Reference in New Issue
Block a user