mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 14:41:21 +00:00
* 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 d63d7975db.
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"
|