|
1 | 1 | export const QBConfig = { |
2 | | - credentials: { |
3 | | - appId: -1, |
4 | | - accountKey: '', |
5 | | - authKey: '', |
6 | | - authSecret: '', |
7 | | - sessionToken: '', |
8 | | - }, |
9 | | - appConfig: { |
10 | | - maxFileSize: 10 * 1024 * 1024, |
11 | | - sessionTimeOut: 122, |
12 | | - chatProtocol: { |
13 | | - active: 2, |
| 2 | + credentials: { |
| 3 | + appId: -1, |
| 4 | + authKey: '', |
| 5 | + authSecret: '', |
| 6 | + accountKey: '', |
| 7 | + sessionToken: '', |
14 | 8 | }, |
15 | | - debug: true, |
16 | | - endpoints: { |
17 | | - api: 'api.quickblox.com', |
18 | | - chat: 'chat.quickblox.com', |
| 9 | + configAIApi: { |
| 10 | + AIAnswerAssistWidgetConfig: { |
| 11 | + apiKey: '', |
| 12 | + useDefault: true, |
| 13 | + proxyConfig: { |
| 14 | + api: 'v1/chat/completions', |
| 15 | + servername: 'https://api.openai.com/', |
| 16 | + port: '', |
| 17 | + sessionToken: '', |
| 18 | + }, |
| 19 | + }, |
| 20 | + AITranslateWidgetConfig: { |
| 21 | + apiKey: '', |
| 22 | + useDefault: true, |
| 23 | + defaultLanguage: 'English', |
| 24 | + languages: [ |
| 25 | + 'English', |
| 26 | + 'Spanish', |
| 27 | + 'French', |
| 28 | + 'Portuguese', |
| 29 | + 'German', |
| 30 | + 'Ukrainian', |
| 31 | + ], |
| 32 | + proxyConfig: { |
| 33 | + api: 'v1/chat/completions', |
| 34 | + servername: 'https://api.openai.com/', |
| 35 | + port: '', |
| 36 | + sessionToken: '', |
| 37 | + }, |
| 38 | + }, |
| 39 | + AIRephraseWidgetConfig: { |
| 40 | + apiKey: '', |
| 41 | + useDefault: true, |
| 42 | + defaultTone: 'Professional', |
| 43 | + proxyConfig: { |
| 44 | + api: 'v1/chat/completions', |
| 45 | + servername: 'https://api.openai.com/', |
| 46 | + port: '', |
| 47 | + sessionToken: '', |
| 48 | + }, |
| 49 | + }, |
19 | 50 | }, |
20 | | - on: { |
21 | | - // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/require-await |
22 | | - async sessionExpired(handleResponse: any, retry: any) { |
23 | | - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions |
24 | | - console.log(`Test sessionExpired....${handleResponse} ${retry}`); |
25 | | - }, |
| 51 | + appConfig: { |
| 52 | + maxFileSize: 10 * 1024 * 1024, |
| 53 | + sessionTimeOut: 122, |
| 54 | + chatProtocol: { |
| 55 | + active: 2, |
| 56 | + }, |
| 57 | + debug: true, |
| 58 | + endpoints: { |
| 59 | + api: 'api.quickblox.com', |
| 60 | + chat: 'chat.quickblox.com', |
| 61 | + }, |
| 62 | + on: { |
| 63 | + // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/require-await |
| 64 | + async sessionExpired(handleResponse: any, retry: any) { |
| 65 | + console.log( |
| 66 | + // eslint-disable-next-line @typescript-eslint/restrict-template-expressions |
| 67 | + `QBconfig sessionExpired handle: ${handleResponse} ${retry}`, |
| 68 | + ); |
| 69 | + }, |
| 70 | + }, |
| 71 | + streamManagement: { |
| 72 | + enable: true, |
| 73 | + }, |
26 | 74 | }, |
27 | | - streamManagement: { |
28 | | - enable: true, |
29 | | - }, |
30 | | - }, |
31 | 75 | }; |
0 commit comments