diff --git a/src/service/api/ai.ts b/src/service/api/ai.ts index 1eb4d59..460d5d8 100644 --- a/src/service/api/ai.ts +++ b/src/service/api/ai.ts @@ -184,7 +184,7 @@ export interface RecognizeResult { export function aiRecognize(content: string, deviceTags: string[] = []){ return request({ url: '/open/v1/moc/change/recognize', - method: 'get', + method: 'post', params: { request_id: nextRequestId('rec'), content, diff --git a/src/utils/service.ts b/src/utils/service.ts index f43d734..bdd8ab9 100644 --- a/src/utils/service.ts +++ b/src/utils/service.ts @@ -60,7 +60,7 @@ export function createAiServiceConfig(env: Env.ImportMeta) { aiUrl = 'http://192.168.0.230:8085/proxy-ai'; }else{ // url = window.location.origin; - aiUrl = '/api'; + aiUrl = 'http://192.168.0.230:8085/proxy-ai'; } const httpConfig: App.Service.SimpleServiceConfig = { baseURL: aiUrl,