doomiaichat 7.1.28 → 7.1.29
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 +1 -1
- package/package.json +1 -1
- package/src/corzbot.ts +1 -1
package/dist/corzbot.js
CHANGED
|
@@ -71,7 +71,7 @@ class CorzBot extends gptbase_1.default {
|
|
|
71
71
|
/// 如果开启debug模式,则创建记录日志的目录,将日志输出到该目录
|
|
72
72
|
if (setting.debug === true) {
|
|
73
73
|
this.debug = true;
|
|
74
|
-
this.debugDir = setting.logPath || (0, path_1.resolve)(process.cwd(), './cozedebug');
|
|
74
|
+
this.debugDir = (0, path_1.join)(setting.logPath || (0, path_1.resolve)(process.cwd(), './cozedebug'), this.setting.model || 'chat');
|
|
75
75
|
(0, fs_1.mkdirSync)(this.debugDir, { recursive: true });
|
|
76
76
|
}
|
|
77
77
|
this.apiKey = this.setting['apiKey'];
|
package/package.json
CHANGED
package/src/corzbot.ts
CHANGED
|
@@ -72,7 +72,7 @@ export default class CorzBot extends GptBase {
|
|
|
72
72
|
/// 如果开启debug模式,则创建记录日志的目录,将日志输出到该目录
|
|
73
73
|
if (setting.debug === true) {
|
|
74
74
|
this.debug = true;
|
|
75
|
-
this.debugDir = setting.logPath || resolve(process.cwd(), './cozedebug')
|
|
75
|
+
this.debugDir = join(setting.logPath || resolve(process.cwd(), './cozedebug'),this.setting.model || 'chat');
|
|
76
76
|
mkdirSync(this.debugDir!, { recursive: true });
|
|
77
77
|
}
|
|
78
78
|
this.apiKey = this.setting['apiKey'];
|