MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / WithCodexBuiltins

Function WithCodexBuiltins

internal/registry/model_definitions.go:116–118  ·  view source on GitHub ↗

WithCodexBuiltins injects hard-coded Codex-only model definitions that should not depend on remote models.json updates. Built-ins replace any matching IDs already present in the provided slice.

(models []*ModelInfo)

Source from the content-addressed store, hash-verified

114// not depend on remote models.json updates. Built-ins replace any matching IDs
115// already present in the provided slice.
116func WithCodexBuiltins(models []*ModelInfo) []*ModelInfo {
117 return upsertModelInfos(models, codexBuiltinImage15ModelInfo(), codexBuiltinImageModelInfo())
118}
119
120// WithXAIBuiltins injects hard-coded xAI image/video model definitions that should
121// not depend on remote models.json updates.

Callers 5

buildCodexConfigModelsFunction · 0.92
GetCodexFreeModelsFunction · 0.85
GetCodexTeamModelsFunction · 0.85
GetCodexPlusModelsFunction · 0.85
GetCodexProModelsFunction · 0.85

Calls 3

upsertModelInfosFunction · 0.85

Tested by

no test coverage detected