fix: update Prompt type in GeneralOpenAIRequest and adjust related logic in ConvertCompletionsRequest

This commit is contained in:
Laisky.Cai
2025-02-10 02:11:53 +00:00
parent 3e3b8230ac
commit 5e3f853fa8
4 changed files with 8 additions and 8 deletions

View File

@@ -33,6 +33,10 @@ func RelayTextHelper(c *gin.Context) *model.ErrorWithStatusCode {
}
meta.IsStream = textRequest.Stream
if reqBody, ok := c.Get(ctxkey.KeyRequestBody); ok {
logger.Debugf(c.Request.Context(), "get text request: %s\n", string(reqBody.([]byte)))
}
// map model name
meta.OriginModelName = textRequest.Model
textRequest.Model, _ = getMappedModelName(textRequest.Model, meta.ModelMapping)