mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
chore: correct prompt messages
This commit is contained in:
parent
fb6a35ebe4
commit
37cdc26160
@ -198,7 +198,7 @@ func (h *ChatHandler) sendMessage(ctx context.Context, session *types.ChatSessio
|
|||||||
}
|
}
|
||||||
|
|
||||||
if userVo.Power < session.Model.Power {
|
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)
|
utils.ReplyMessage(ws, ErrImg)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -142,6 +142,10 @@ func (e *XXLJobExecutor) ResetUserPower(cxt context.Context, param *xxl.RunReq)
|
|||||||
return "error with decode system config: " + err.Error()
|
return "error with decode system config: " + err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.DailyPower <= 0 {
|
||||||
|
return "success"
|
||||||
|
}
|
||||||
|
|
||||||
var counter = 0
|
var counter = 0
|
||||||
var totalPower = 0
|
var totalPower = 0
|
||||||
for _, u := range users {
|
for _, u := range users {
|
||||||
|
@ -17,8 +17,5 @@ type Student struct {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
text := "2024-06-01 08:34:46"
|
fmt.Println(utils.RandString(64))
|
||||||
fmt.Println(utils.Str2stamp(text))
|
|
||||||
|
|
||||||
fmt.Println(utils.Stamp2str(utils.Str2stamp(text)))
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user