diff --git a/src/services/api.js b/src/services/api.js index 826061c..2e2fa34 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -30,15 +30,15 @@ class ApiService { * @param {string} agentRtcUid - The agent RTC UID * @returns {Promise} - The response from the API */ - async joinProject(channelName = 'convaiconsole_108446', agentRtcUid = '91482') { + async joinProject(channelName = 'convaiconsole_122624', agentRtcUid = '29501') { try { const response = await this.client.post( `${this.baseUrl}/projects/${this.projectId}/join/`, { - "name": "convaiconsole_149700", + "name": "convaiconsole_122624", "properties": { - "channel": "convaiconsole_149700", - "agent_rtc_uid": "54047", + "channel": "convaiconsole_122624", + "agent_rtc_uid": "29501", "remote_rtc_uids": [ "*" ], @@ -46,7 +46,7 @@ class ApiService { "idle_timeout": 120, "llm": { "url": "https://vip.apiyi.com/v1/chat/completions", - "api_key": "wN-fMujjNdcwJ2M3-MbhMHSF6-j_3dT3", + "api_key": "sk-xVIc9b7EfY7LlPagF31d90F4736f4aE18cB91b5957A40506", "max_history": 10, "system_messages": [ { @@ -55,7 +55,7 @@ class ApiService { } ], "params": { - "model": "deepseek-chat", + "model": "deepseek-r1", "max_token": 1024 }, "greeting_message": "你好呀,有什么可以帮您?", @@ -93,7 +93,7 @@ class ApiService { "enable_metrics": true, "audio_scenario": "default" }, - "token": "007eJxTYHi+XWtqBkPmn71LGvdmPds7sfiQfomBxpt3XMfOC53fcjVegcHAMNEwJTUp2dLMJNEk2SzRIiUNyDdKNEtONU9MNEkpibmZ3hDIyPDYXo2JkQECQXwRhuT8vLLETCBZnJ+TGm9oYmluYMDAAACcPigI", + "token": "007eJxTYEibc7f9w4Ebac5HtT9ej/CL7KzPrGb+GZmn6/G+kLVp8XsFBgPDRMOU1KRkSzOTRJNks0SLlDQg3yjRLDnVPDHRJGV67630hkBGhhvth1kZGSAQxBdhSM7PK0vMBJLF+Tmp8YZGRmZGJgwMAIF3KEg=", "advanced_features": { "enable_aivad": false } @@ -127,7 +127,6 @@ class ApiService { content: message } ); - return response.data; } catch (error) { console.error('Error sending message:', error);