修改了api 确保参数能够通讯
This commit is contained in:
@@ -30,15 +30,15 @@ class ApiService {
|
|||||||
* @param {string} agentRtcUid - The agent RTC UID
|
* @param {string} agentRtcUid - The agent RTC UID
|
||||||
* @returns {Promise} - The response from the API
|
* @returns {Promise} - The response from the API
|
||||||
*/
|
*/
|
||||||
async joinProject(channelName = 'convaiconsole_108446', agentRtcUid = '91482') {
|
async joinProject(channelName = 'convaiconsole_122624', agentRtcUid = '29501') {
|
||||||
try {
|
try {
|
||||||
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": "convaiconsole_149700",
|
"name": "convaiconsole_122624",
|
||||||
"properties": {
|
"properties": {
|
||||||
"channel": "convaiconsole_149700",
|
"channel": "convaiconsole_122624",
|
||||||
"agent_rtc_uid": "54047",
|
"agent_rtc_uid": "29501",
|
||||||
"remote_rtc_uids": [
|
"remote_rtc_uids": [
|
||||||
"*"
|
"*"
|
||||||
],
|
],
|
||||||
@@ -46,7 +46,7 @@ class ApiService {
|
|||||||
"idle_timeout": 120,
|
"idle_timeout": 120,
|
||||||
"llm": {
|
"llm": {
|
||||||
"url": "https://vip.apiyi.com/v1/chat/completions",
|
"url": "https://vip.apiyi.com/v1/chat/completions",
|
||||||
"api_key": "wN-fMujjNdcwJ2M3-MbhMHSF6-j_3dT3",
|
"api_key": "sk-xVIc9b7EfY7LlPagF31d90F4736f4aE18cB91b5957A40506",
|
||||||
"max_history": 10,
|
"max_history": 10,
|
||||||
"system_messages": [
|
"system_messages": [
|
||||||
{
|
{
|
||||||
@@ -55,7 +55,7 @@ class ApiService {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"params": {
|
"params": {
|
||||||
"model": "deepseek-chat",
|
"model": "deepseek-r1",
|
||||||
"max_token": 1024
|
"max_token": 1024
|
||||||
},
|
},
|
||||||
"greeting_message": "你好呀,有什么可以帮您?",
|
"greeting_message": "你好呀,有什么可以帮您?",
|
||||||
@@ -93,7 +93,7 @@ class ApiService {
|
|||||||
"enable_metrics": true,
|
"enable_metrics": true,
|
||||||
"audio_scenario": "default"
|
"audio_scenario": "default"
|
||||||
},
|
},
|
||||||
"token": "007eJxTYHi+XWtqBkPmn71LGvdmPds7sfiQfomBxpt3XMfOC53fcjVegcHAMNEwJTUp2dLMJNEk2SzRIiUNyDdKNEtONU9MNEkpibmZ3hDIyPDYXo2JkQECQXwRhuT8vLLETCBZnJ+TGm9oYmluYMDAAACcPigI",
|
"token": "007eJxTYEibc7f9w4Ebac5HtT9ej/CL7KzPrGb+GZmn6/G+kLVp8XsFBgPDRMOU1KRkSzOTRJNks0SLlDQg3yjRLDnVPDHRJGV67630hkBGhhvth1kZGSAQxBdhSM7PK0vMBJLF+Tmp8YZGRmZGJgwMAIF3KEg=",
|
||||||
"advanced_features": {
|
"advanced_features": {
|
||||||
"enable_aivad": false
|
"enable_aivad": false
|
||||||
}
|
}
|
||||||
@@ -127,7 +127,6 @@ class ApiService {
|
|||||||
content: message
|
content: message
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error sending message:', error);
|
console.error('Error sending message:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user