Explorar o código

chore: remove -0613 suffix for Azure (#163)

quzard %!s(int64=2) %!d(string=hai) anos
pai
achega
e87ad1f402
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      controller/relay.go

+ 1 - 0
controller/relay.go

@@ -177,6 +177,7 @@ func relayHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
 		// https://github.com/songquanpeng/one-api/issues/67
 		model_ = strings.TrimSuffix(model_, "-0301")
 		model_ = strings.TrimSuffix(model_, "-0314")
+		model_ = strings.TrimSuffix(model_, "-0613")
 		fullRequestURL = fmt.Sprintf("%s/openai/deployments/%s/%s", baseURL, model_, task)
 	} else if channelType == common.ChannelTypePaLM {
 		err := relayPaLM(textRequest, c)