优化系统设置 API 参数解析,优化点卡扣费逻辑,没有回复答案不记扣费次数

This commit is contained in:
RockYang
2023-04-04 09:05:17 +08:00
parent 43e2743b9b
commit 65ad5fb632
4 changed files with 127 additions and 128 deletions

View File

@@ -18,6 +18,8 @@ type User struct {
MaxCalls int `json:"max_calls"` // 最多调用次数,如果为 0 则表示不限制
RemainingCalls int `json:"remaining_calls"` // 剩余调用次数
EnableHistory bool `json:"enable_history"` // 是否启用聊天记录
Status bool `json:"status"` // 当前状态
ApiKey string `json:"api_key"` // OpenAI API KEY
}
// Chat configs struct