ai请求地址修改
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user