mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	chore: correct prompt messages
This commit is contained in:
		@@ -198,7 +198,7 @@ func (h *ChatHandler) sendMessage(ctx context.Context, session *types.ChatSessio
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if userVo.Power < session.Model.Power {
 | 
			
		||||
		utils.ReplyMessage(ws, fmt.Sprintf("您当前剩余对话次数(%d)已不足以支付当前模型的单次对话需要消耗的对话额度(%d)!", userVo.Power, session.Model.Power))
 | 
			
		||||
		utils.ReplyMessage(ws, fmt.Sprintf("您当前剩余算力(%d)已不足以支付当前模型的单次对话需要消耗的算力(%d)!", userVo.Power, session.Model.Power))
 | 
			
		||||
		utils.ReplyMessage(ws, ErrImg)
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -142,6 +142,10 @@ func (e *XXLJobExecutor) ResetUserPower(cxt context.Context, param *xxl.RunReq)
 | 
			
		||||
		return "error with decode system config: " + err.Error()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if config.DailyPower <= 0 {
 | 
			
		||||
		return "success"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var counter = 0
 | 
			
		||||
	var totalPower = 0
 | 
			
		||||
	for _, u := range users {
 | 
			
		||||
 
 | 
			
		||||
@@ -17,8 +17,5 @@ type Student struct {
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
 | 
			
		||||
	text := "2024-06-01 08:34:46"
 | 
			
		||||
	fmt.Println(utils.Str2stamp(text))
 | 
			
		||||
 | 
			
		||||
	fmt.Println(utils.Stamp2str(utils.Str2stamp(text)))
 | 
			
		||||
	fmt.Println(utils.RandString(64))
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user