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,