Some checks failed
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
* feat: /v1/chat/completion -> /v1/response
15 lines
528 B
Go
15 lines
528 B
Go
package service
|
|
|
|
import (
|
|
"github.com/QuantumNous/new-api/service/openaicompat"
|
|
"github.com/QuantumNous/new-api/setting/model_setting"
|
|
)
|
|
|
|
func ShouldChatCompletionsUseResponsesPolicy(policy model_setting.ChatCompletionsToResponsesPolicy, channelID int, model string) bool {
|
|
return openaicompat.ShouldChatCompletionsUseResponsesPolicy(policy, channelID, model)
|
|
}
|
|
|
|
func ShouldChatCompletionsUseResponsesGlobal(channelID int, model string) bool {
|
|
return openaicompat.ShouldChatCompletionsUseResponsesGlobal(channelID, model)
|
|
}
|