2026-01-11 21:38:07 +08:00
|
|
|
package service
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/QuantumNous/new-api/service/openaicompat"
|
|
|
|
|
"github.com/QuantumNous/new-api/setting/model_setting"
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-26 19:57:41 +08:00
|
|
|
func ShouldChatCompletionsUseResponsesPolicy(policy model_setting.ChatCompletionsToResponsesPolicy, channelID int, channelType int, model string) bool {
|
|
|
|
|
return openaicompat.ShouldChatCompletionsUseResponsesPolicy(policy, channelID, channelType, model)
|
2026-01-11 21:38:07 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-26 19:57:41 +08:00
|
|
|
func ShouldChatCompletionsUseResponsesGlobal(channelID int, channelType int, model string) bool {
|
|
|
|
|
return openaicompat.ShouldChatCompletionsUseResponsesGlobal(channelID, channelType, model)
|
2026-01-11 21:38:07 +08:00
|
|
|
}
|