azure-openai support other type api (#1187)

This commit is contained in:
澄潭
2024-08-08 13:33:12 +08:00
committed by GitHub
parent 34f5722d93
commit dc0dcaaaee
2 changed files with 8 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ func (m *openaiProvider) OnRequestHeaders(ctx wrapper.HttpContext, apiName ApiNa
case ApiNameChatCompletion:
_ = util.OverwriteRequestPath(defaultOpenaiChatCompletionPath)
case ApiNameEmbeddings:
ctx.DontReadRequestBody()
_ = util.OverwriteRequestPath(defaultOpenaiEmbeddingsPath)
}
} else {