🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(chat): route realtime dictation through webapi (#19776)
Tsukieb5dbeaa44a9
diff --git a/src/features/ChatInput/Dictation/service.test.ts b/src/features/ChatInput/Dictation/service.test.tsindex 16ab38504cd..ef6a403b3db 100644--- a/src/features/ChatInput/Dictation/service.test.ts+++ b/src/features/ChatInput/Dictation/service.test.ts@@ -41,7 +41,7 @@ describe('createRealtimeAsrSession', () => {);expect(fetcher).toHaveBeenCalledOnce();const [url, init] = fetcher.mock.calls[0];- expect(url).toBe('/api/asr/realtime/session');+ expect(url).toBe('/webapi/asr/realtime/session');expect(init.method).toBe('POST');expect(JSON.parse(init.body)).toEqual({ platform: 'web' });expect(init.headers.get('X-Test-Scope')).toBe('scope-1');diff --git a/src/features/ChatInput/Dictation/service.ts b/src/features/ChatInput/Dictation/service.tsindex abd3c0eefa4..72d4937f849 100644--- a/src/features/ChatInput/Dictation/service.ts+++ b/src/features/ChatInput/Dictation/service.ts@@ -25,7 +25,7 @@ export const createRealtimeAsrSession = async (let response: Response;try {- response = await fetcher('/api/asr/realtime/session', {+ response = await fetcher('/webapi/asr/realtime/session', {body: JSON.stringify({ platform: 'web' }),headers,method: 'POST',