ai请求地址修改

This commit is contained in:
2026-09-01 11:04:18 +08:00
parent 3d6525e3d4
commit 040226b2e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ export interface RecognizeResult {
export function aiRecognize(content: string, deviceTags: string[] = []){ export function aiRecognize(content: string, deviceTags: string[] = []){
return request({ return request({
url: '/open/v1/moc/change/recognize', url: '/open/v1/moc/change/recognize',
method: 'get', method: 'post',
params: { params: {
request_id: nextRequestId('rec'), request_id: nextRequestId('rec'),
content, content,
+1 -1
View File
@@ -60,7 +60,7 @@ export function createAiServiceConfig(env: Env.ImportMeta) {
aiUrl = 'http://192.168.0.230:8085/proxy-ai'; aiUrl = 'http://192.168.0.230:8085/proxy-ai';
}else{ }else{
// url = window.location.origin; // url = window.location.origin;
aiUrl = '/api'; aiUrl = 'http://192.168.0.230:8085/proxy-ai';
} }
const httpConfig: App.Service.SimpleServiceConfig = { const httpConfig: App.Service.SimpleServiceConfig = {
baseURL: aiUrl, baseURL: aiUrl,