feat(channel): support Codex upstream model discovery (#6184)

* 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.
This commit is contained in:
Seefs
2026-07-18 13:04:16 +08:00
committed by GitHub
parent 1086038f5f
commit 57746fc972
8 changed files with 359 additions and 102 deletions
+4
View File
@@ -285,6 +285,10 @@ func fetchChannelUpstreamModelIDs(channel *model.Channel) ([]string, error) {
return normalizeModelNames(models), nil
}
if channel.Type == constant.ChannelTypeCodex {
return service.FetchCodexChannelModels(channel)
}
var url string
switch channel.Type {
case constant.ChannelTypeAli: