diff --git a/assets/Scripts/chat18x/config/GlobalConfig.ts b/assets/Scripts/chat18x/config/GlobalConfig.ts index 42baeef3..c5afc4f0 100644 --- a/assets/Scripts/chat18x/config/GlobalConfig.ts +++ b/assets/Scripts/chat18x/config/GlobalConfig.ts @@ -96,10 +96,10 @@ export class GlobalConfig extends BaseConfig { } /** 情绪评分机器人system_prompt,需拼接角色prompt */ - public getEmotionRating(): string | null { + public getEmotionBasePrompt(): string | null { let oneData = this.getAllConfig(); if (!oneData) return null; - return oneData.EmotionRating; + return oneData.EmotionBasePrompt; } /** ai机器人基础规则 */ diff --git a/assets/Scripts/chat18x/data/GlobalData.ts b/assets/Scripts/chat18x/data/GlobalData.ts index bc91b79e..9b9e1d1c 100644 --- a/assets/Scripts/chat18x/data/GlobalData.ts +++ b/assets/Scripts/chat18x/data/GlobalData.ts @@ -26,11 +26,9 @@ export class GlobalData extends BaseData { // 游戏名 private _gameName: string = ""; // 情绪评分机器人system_prompt,需拼接角色prompt - private _emotionRating: string = ""; + private _emotionBasePrompt: string = ""; // ai机器人基础规则 private _girlBasePrompt: string = ""; - // emotion基础规则 - private _emotionBasePrompt: string = ""; public reset(): void { this._apiKey = ""; @@ -43,9 +41,8 @@ export class GlobalData extends BaseData { this._onceChatAddScore = 0; this._scoreExchangeStarLevel = 0; this._gameName = ""; - this._emotionRating = ""; - this._girlBasePrompt = ""; this._emotionBasePrompt = ""; + this._girlBasePrompt = ""; } public clear(): void { @@ -59,9 +56,8 @@ export class GlobalData extends BaseData { this._onceChatAddScore = 0; this._scoreExchangeStarLevel = 0; this._gameName = ""; - this._emotionRating = ""; - this._girlBasePrompt = ""; this._emotionBasePrompt = ""; + this._girlBasePrompt = ""; } public destroy(): void { @@ -76,9 +72,8 @@ export class GlobalData extends BaseData { this._onceChatAddScore = null; this._scoreExchangeStarLevel = null; this._gameName = null; - this._emotionRating = null; - this._girlBasePrompt = null; this._emotionBasePrompt = null; + this._girlBasePrompt = null; } /** 设置全局数据 */ @@ -96,9 +91,8 @@ export class GlobalData extends BaseData { this._onceChatAddScore = obj.OnceChatAddScore; this._scoreExchangeStarLevel = obj.ScoreExchangeStarLevel; this._gameName = obj.GameName; - this._emotionRating = obj.EmotionRating; - this._girlBasePrompt = obj.girlBasePrompt; this._emotionBasePrompt = obj.EmotionBasePrompt; + this._girlBasePrompt = obj.girlBasePrompt; console.log("设置全局数据: ", this._gameName); } } @@ -154,15 +148,12 @@ export class GlobalData extends BaseData { } /** 情绪评分机器人system_prompt,需拼接角色prompt */ - public getEmotionRating(): string { - return this._emotionRating; + public getEmotionBasePrompt(): string { + return this._emotionBasePrompt; } /** ai机器人基础规则 */ public getGirlBasePrompt(): string { return this._girlBasePrompt; } - public getEmotionBasePrompt(): string { - return this._emotionBasePrompt; - } }