fix: API Key 前缀调整为 sk-ot-

This commit is contained in:
Sakurasan
2026-08-26 15:57:04 +08:00
parent c78a473e59
commit a45a6e16bd
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func (g *Gateway) Auth(c *gin.Context) {
key = strings.TrimSpace(c.GetHeader("x-api-key"))
}
if !apikey.Valid(key) {
apiError(c, http.StatusUnauthorized, "invalid_api_key", "Invalid API key format. Expected: Authorization: Bearer sk-ot... or x-api-key: sk-ot...")
apiError(c, http.StatusUnauthorized, "invalid_api_key", "Invalid API key format. Expected: Authorization: Bearer sk-ot-... or x-api-key: sk-ot-...")
c.Abort()
return
}