From bbc59e61cea1466c3ed9d94ec90c9a45d5751392 Mon Sep 17 00:00:00 2001 From: Sergei Date: Mon, 19 Jan 2026 21:16:52 -0800 Subject: [PATCH] Switch from voice_ask to ask_wellnuo_ai API function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As requested - same parameters, same response format. Changed in both: - chat.tsx (text chat) - agent.py (voice agent) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/(tabs)/chat.tsx | 3 ++- julia-agent/julia-ai/src/agent.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/(tabs)/chat.tsx b/app/(tabs)/chat.tsx index 6d480cf..6388f7c 100644 --- a/app/(tabs)/chat.tsx +++ b/app/(tabs)/chat.tsx @@ -248,11 +248,12 @@ export default function ChatScreen() { const normalizedQuestion = normalizeQuestion(trimmedInput); // Call API with EXACT same params as voice agent + // Using ask_wellnuo_ai instead of voice_ask (same params, same response format) const response = await fetch(API_URL, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ - function: 'voice_ask', + function: 'ask_wellnuo_ai', clientId: 'MA_001', user_name: WELLNUO_USER, token: token, diff --git a/julia-agent/julia-ai/src/agent.py b/julia-agent/julia-ai/src/agent.py index 17d3700..6d14dbd 100644 --- a/julia-agent/julia-ai/src/agent.py +++ b/julia-agent/julia-ai/src/agent.py @@ -191,8 +191,9 @@ class WellNuoLLM(llm.LLM): token = await self._ensure_token() async with aiohttp.ClientSession() as session: + # Using ask_wellnuo_ai instead of voice_ask (same params, same response) data = { - "function": "voice_ask", + "function": "ask_wellnuo_ai", "clientId": "MA_001", "user_name": WELLNUO_USER, "token": token,