micro fixs, update database SQL file

This commit is contained in:
RockYang
2024-12-27 17:02:27 +08:00
parent 2ba3c52e6e
commit 488169683f
25 changed files with 1190 additions and 329 deletions

View File

@@ -143,6 +143,7 @@ func (h *RealtimeHandler) VoiceChat(c *gin.Context) {
err := h.DB.Session(&gorm.Session{}).Where("type", "realtime").Where("enabled", true).First(&apiKey).Error
if err != nil {
resp.ERROR(c, fmt.Sprintf("error with fetch OpenAI API KEY%v", err))
return
}
var response utils.OpenAIResponse