api中信息修改
This commit is contained in:
@@ -35,67 +35,67 @@ class ApiService {
|
|||||||
const response = await this.client.post(
|
const response = await this.client.post(
|
||||||
`${this.baseUrl}/projects/${this.projectId}/join/`,
|
`${this.baseUrl}/projects/${this.projectId}/join/`,
|
||||||
{
|
{
|
||||||
name: channelName,
|
"name": "convaiconsole_149700",
|
||||||
properties: {
|
"properties": {
|
||||||
channel: "testChannel",
|
"channel": "convaiconsole_149700",
|
||||||
token: "007eJxTYJBc1LqzN+VLw4SMTFNviZTzYeGSTz2UP69pceR+fcXAWFyBwcAw0TAlNSnZ0swk0STZLNEiJQ3IN0o0S041T0w0SamzvJneEMjIsCrrFwMjFIL43AwlqcUlzhmJeXmpOQwMABPJIos=",
|
"agent_rtc_uid": "54047",
|
||||||
agent_rtc_uid: 0,
|
"remote_rtc_uids": [
|
||||||
remote_rtc_uids: ["*"],
|
"*"
|
||||||
enable_string_uid: false,
|
],
|
||||||
idle_timeout: 120,
|
"enable_string_uid": true,
|
||||||
llm: {
|
"idle_timeout": 120,
|
||||||
url: "/llm-api",
|
"llm": {
|
||||||
api_key: "sk-xVIc9b7EfY7LlPagF31d90F4736f4aE18cB91b5957A40506",
|
"url": "https://vip.apiyi.com/v1/chat/completions",
|
||||||
max_history: 10,
|
"api_key": "wN-fMujjNdcwJ2M3-MbhMHSF6-j_3dT3",
|
||||||
system_messages: [
|
"max_history": 10,
|
||||||
|
"system_messages": [
|
||||||
{
|
{
|
||||||
role: "system",
|
"role": "system",
|
||||||
content: ""
|
"content": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
params: {
|
"params": {
|
||||||
model: "deepseek-chat",
|
"model": "deepseek-chat",
|
||||||
max_token: 1024
|
"max_token": 1024
|
||||||
},
|
},
|
||||||
greeting_message: "你好呀,有什么可以帮您?",
|
"greeting_message": "你好呀,有什么可以帮您?",
|
||||||
failure_message: "我出错了,请稍等!"
|
"failure_message": "我出错了,请稍等!"
|
||||||
},
|
},
|
||||||
asr: {
|
"asr": {
|
||||||
language: "zh-CN"
|
"language": "zh-CN"
|
||||||
},
|
},
|
||||||
vad: {
|
"vad": {
|
||||||
interrupt_duration_ms: 160,
|
"interrupt_duration_ms": 160,
|
||||||
prefix_padding_ms: 300,
|
"prefix_padding_ms": 300,
|
||||||
silence_duration_ms: 480,
|
"silence_duration_ms": 480,
|
||||||
threshold: 0.5
|
"threshold": 0.5
|
||||||
},
|
},
|
||||||
tts: {
|
"tts": {
|
||||||
vendor: "bytedance",
|
"vendor": "bytedance",
|
||||||
params: {
|
"params": {
|
||||||
token: "wN-fMujjNdcwJ2M3-MbhMHSF6-j_3dT3",
|
"token": "wN-fMujjNdcwJ2M3-MbhMHSF6-j_3dT3",
|
||||||
app_id: "4417529362",
|
"app_id": "4417529362",
|
||||||
cluster: "volcano_tts",
|
"cluster": "volcano_tts",
|
||||||
voice_type: "BV700_streaming",
|
"voice_type": "BV700_streaming",
|
||||||
speed_ratio: 1.0,
|
"speed_ratio": 1,
|
||||||
volume_ratio: 1.0,
|
"volume_ratio": 1,
|
||||||
pitch_ratio: 1.0,
|
"pitch_ratio": 1,
|
||||||
emotion: "happy"
|
"emotion": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
parameters: {
|
"parameters": {
|
||||||
transcript: {
|
"transcript": {
|
||||||
enable: true,
|
"enable": true,
|
||||||
protocol_version: "v2",
|
"protocol_version": "v2",
|
||||||
enable_words: false,
|
"enable_words": false,
|
||||||
redundant: false
|
"redundant": false
|
||||||
},
|
},
|
||||||
enable_metrics: true,
|
"enable_metrics": true,
|
||||||
audio_scenario: "default"
|
"audio_scenario": "default"
|
||||||
},
|
},
|
||||||
token: "007eJxTYBDbc7v13v7dwVVOXVMOWv1jZlsa57TyYqDInTmtH+UcZroqMBgYJhqmpCYlW5qZJJokmyVapKQB+UaJZsmp5omJJinlZjfTGwIZGZYb8DIwQiGIL8KQnJ9XlpgJJIvzc1LjDQ0sTEzMGBgA4KQlrw==",
|
"token": "007eJxTYHi+XWtqBkPmn71LGvdmPds7sfiQfomBxpt3XMfOC53fcjVegcHAMNEwJTUp2dLMJNEk2SzRIiUNyDdKNEtONU9MNEkpibmZ3hDIyPDYXo2JkQECQXwRhuT8vLLETCBZnJ+TGm9oYmluYMDAAACcPigI",
|
||||||
advanced_features: {
|
"advanced_features": {
|
||||||
enable_aivad: true
|
"enable_aivad": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ export default defineConfig({
|
|||||||
'Authorization': 'Basic OGRkM2EzOGUxNTJjNGU1NDlmNWMwOTg0YmRhYzc1ZTE6ZWY1MTI2ZTRmMWFlNGE5MWE0MzVhN2Q0ZDc0YzNlYjg=',
|
'Authorization': 'Basic OGRkM2EzOGUxNTJjNGU1NDlmNWMwOTg0YmRhYzc1ZTE6ZWY1MTI2ZTRmMWFlNGE5MWE0MzVhN2Q0ZDc0YzNlYjg=',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/llm-api':{
|
// '/llm-api':{
|
||||||
target:'https://vip.apiyi.com/v1/chat/completions',
|
// target:'https://vip.apiyi.com/v1/chat/completions',
|
||||||
changeOrigin: true,
|
// changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/llm-api/, ''),
|
// rewrite: (path) => path.replace(/^\/llm-api/, ''),
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user