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