* fix(i18n): clarify Go regex and field passthrough copy * feat(channel): support Codex upstream model discovery * Revert "fix(i18n): clarify Go regex and field passthrough copy" This reverts commit d63d7975db3e34ff44e189112d3c15ad8c24ad88.
28 lines
502 B
Go
28 lines
502 B
Go
package codex
|
|
|
|
import (
|
|
"slices"
|
|
|
|
"github.com/QuantumNous/new-api/setting/ratio_setting"
|
|
)
|
|
|
|
var baseModelList = []string{
|
|
"gpt-5.6-sol",
|
|
"gpt-5.6-terra",
|
|
"gpt-5.6-luna",
|
|
"gpt-5.5",
|
|
"gpt-5.4",
|
|
"gpt-5.4-mini",
|
|
"gpt-5.3-codex-spark",
|
|
"codex-auto-review",
|
|
}
|
|
|
|
var ModelList = slices.DeleteFunc(
|
|
ratio_setting.WithCompactModelVariants(baseModelList),
|
|
func(modelName string) bool {
|
|
return modelName == ratio_setting.WithCompactModelSuffix("codex-auto-review")
|
|
},
|
|
)
|
|
|
|
const ChannelName = "codex"
|