doomiaichat 7.1.4 → 7.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/corzbot.js CHANGED
@@ -44,7 +44,7 @@ class CorzBot extends gptbase_1.default {
44
44
  this.setting = setting;
45
45
  this.lastThinkingMessage = { action: '', textposition: 0 };
46
46
  ////初始化扣子客户端
47
- this.botid = this.setting['botid'];
47
+ this.botid = this.setting['botid'] || this.setting['botID'];
48
48
  this.apiKey = this.setting['apiKey'];
49
49
  }
50
50
  createClient() {
@@ -8,7 +8,7 @@ export declare const GptProviderEnum: {
8
8
  readonly OPENAIPROXY: "openaiproxy";
9
9
  readonly MICROSOFT: "microsoft";
10
10
  readonly AIMP: "aimp";
11
- readonly CORZ: "corz";
11
+ readonly COZE: "coze";
12
12
  readonly BAIDU: "baidu";
13
13
  readonly DOUBAO: "doubao";
14
14
  readonly DEEPSEEK: "deepseek";
@@ -29,7 +29,7 @@ exports.GptProviderEnum = {
29
29
  OPENAIPROXY: 'openaiproxy',
30
30
  MICROSOFT: 'microsoft',
31
31
  AIMP: 'aimp',
32
- CORZ: 'corz',
32
+ COZE: 'coze',
33
33
  BAIDU: 'baidu',
34
34
  DOUBAO: 'doubao',
35
35
  DEEPSEEK: 'deepseek',
@@ -60,7 +60,7 @@ function createGpt(provider, apikey, setting) {
60
60
  return new baiduai_1.default(cred);
61
61
  case exports.GptProviderEnum.AIMP:
62
62
  return new aimp_1.default(apikey + '', { endpoint, agentid });
63
- case exports.GptProviderEnum.CORZ:
63
+ case exports.GptProviderEnum.COZE:
64
64
  let authorizationProvider = corzAuth.get(apikey + '');
65
65
  if (!authorizationProvider) {
66
66
  authorizationProvider = new corzauthorization_1.CorzAuthorization(apikey + '', setting);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiaichat",
3
- "version": "7.1.4",
3
+ "version": "7.1.5",
4
4
  "description": "Doomisoft OpenAI",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/corzbot.ts CHANGED
@@ -32,7 +32,7 @@ export default class CorzBot extends GptBase {
32
32
  constructor(private authorizationProvider: CorzAuthorization,private setting: any={}) {
33
33
  super();
34
34
  ////初始化扣子客户端
35
- this.botid = this.setting['botid'];
35
+ this.botid = this.setting['botid'] || this.setting['botID'];
36
36
  this.apiKey = this.setting['apiKey'];
37
37
  }
38
38
  private async createClient(): Promise<CozeAPI> {
@@ -24,7 +24,7 @@ export const GptProviderEnum = {
24
24
  OPENAIPROXY:'openaiproxy',
25
25
  MICROSOFT: 'microsoft',
26
26
  AIMP: 'aimp', ///AI 中台业务
27
- CORZ:'corz',
27
+ COZE:'coze',
28
28
  BAIDU: 'baidu',
29
29
  DOUBAO:'doubao',
30
30
  DEEPSEEK:'deepseek',
@@ -56,7 +56,7 @@ export function createGpt(provider: GptProviderEnum, apikey: string|ApiCredentia
56
56
  return new BaiduWenXinAI(cred);
57
57
  case GptProviderEnum.AIMP:
58
58
  return new AIMiddlePlatform(apikey+'',{ endpoint,agentid });
59
- case GptProviderEnum.CORZ:
59
+ case GptProviderEnum.COZE:
60
60
  let authorizationProvider = corzAuth.get(apikey + '');
61
61
  if (!authorizationProvider) {
62
62
  authorizationProvider = new CorzAuthorization(apikey + '',setting);