mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 11:23:42 +08:00
feat: add session/prefix cache for doubao
This commit is contained in:
@@ -31,6 +31,7 @@ func RelayTextHelper(c *gin.Context) *model.ErrorWithStatusCode {
|
||||
return openai.ErrorWrapper(err, "invalid_text_request", http.StatusBadRequest)
|
||||
}
|
||||
meta.IsStream = textRequest.Stream
|
||||
meta.Cache = len(textRequest.ContextId) > 0
|
||||
|
||||
// map model name
|
||||
meta.OriginModelName = textRequest.Model
|
||||
|
||||
Reference in New Issue
Block a user