强制启用文件拆分(实际模型忽略)

This commit is contained in:
CJACK
2026-04-26 07:31:19 +08:00
parent abc96a37d8
commit 4c83f36089
15 changed files with 48 additions and 39 deletions

View File

@@ -27,9 +27,6 @@ func (s Service) Apply(ctx context.Context, a *auth.RequestAuth, stdReq promptco
if s.DS == nil || s.Store == nil || a == nil {
return stdReq, nil
}
if !s.Store.HistorySplitEnabled() {
return stdReq, nil
}
promptMessages, historyMessages := SplitOpenAIHistoryMessages(stdReq.Messages, s.Store.HistorySplitTriggerAfterTurns())
if len(historyMessages) == 0 {