From 3a19767c4b0b198cdfa36ede0348c3306f1f3dc0 Mon Sep 17 00:00:00 2001 From: TD Date: Wed, 9 Sep 2026 20:46:06 +0200 Subject: [PATCH] fix(voice): fly_route without a name means the newest route; retry once when a small model echoes the title --- server/localVoice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/localVoice.js b/server/localVoice.js index af251a7..49949c2 100644 --- a/server/localVoice.js +++ b/server/localVoice.js @@ -226,7 +226,8 @@ export function installLocalVoiceMiddleware(middlewares, { tools, instructions, + 'You are running on a local/private model, not OpenAI. Reply in the language the operator speaks (Spanish when they speak Spanish). ' + 'Keep spoken replies to one short sentence. When a tool is needed, call it; after tool results, confirm in one sentence. ' + 'If the operator asks what you can do, what to say, or how to zoom / rotate / orbit / follow / enter the cockpit / change layers or styles, ' - + 'answer without calling a tool: a short list (max 8 lines) of example commands drawn from your tools, in their language.'; + + 'answer without calling a tool: a short list (max 8 lines) of example commands drawn from your tools, in their language. ' + + 'For fly_route, omit the route name unless the operator names a specific saved route: "fly the route" means the newest drawn route.'; middlewares.use('/api/local-voice/status', (req, res) => { const config = resolveLocalVoiceProvider(env);