mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-07 17:23:42 +08:00
fix: update Prompt type in GeneralOpenAIRequest and adjust related logic in ConvertCompletionsRequest
This commit is contained in:
@@ -36,6 +36,10 @@ func RelayTextHelper(c *gin.Context) *relaymodel.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 = meta.ActualModelName
|
||||
|
||||
Reference in New Issue
Block a user