fix:gorm not autoIncrement && update doc

This commit is contained in:
Sakurasan
2023-06-12 21:32:27 +08:00
parent 06bd5e048b
commit 933a70a474
12 changed files with 127 additions and 52 deletions

View File

@@ -463,7 +463,7 @@ func HandleProy(c *gin.Context) {
var buildurl string
var apiVersion = "2023-05-15"
if onekey.EndPoint != "" {
buildurl = fmt.Sprintf("https://%s/openai/deployments/%s/chat/completions?api-version=%s", onekey.EndPoint, modelmap(chatreq.Model), apiVersion)
buildurl = fmt.Sprintf("%s/openai/deployments/%s/chat/completions?api-version=%s", onekey.EndPoint, modelmap(chatreq.Model), apiVersion)
} else {
buildurl = fmt.Sprintf("https://%s.openai.azure.com/openai/deployments/%s/chat/completions?api-version=%s", onekey.ResourceNmae, modelmap(chatreq.Model), apiVersion)
}