mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-09 18:23:40 +08:00
fix: update Prompt type in GeneralOpenAIRequest and adjust related logic in ConvertCompletionsRequest
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user