fix(voice): fly_route without a name means the newest route; retry once when a small model echoes the title

This commit is contained in:
TD 2026-09-09 20:46:06 +02:00
parent 177a883e54
commit 3a19767c4b
1 changed files with 2 additions and 1 deletions

View File

@ -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);