Documentation
¶
Overview ¶
Package codexcat renders models the way Codex describes them: the entries of its models.json, for `model_catalog_json` and for the model list magpie hands Codex in place of the ChatGPT backend's.
Index ¶
- Variables
- func CacheEntries() map[string]map[string]any
- func Catalog(ms []catalog.Model) []byte
- func DefaultEffort(e []string) string
- func Entries(ms []catalog.Model, after int) []any
- func MarkedV1(etag string) bool
- func PolicyTag(tag string) string
- func Remember(entries []any)
- func Stamp(e map[string]any)
- func Tag(ms []catalog.Model) string
- func Tagged(etag, tag string) bool
- func V1() bool
- func Window(e map[string]any, n, most int)
- func WithTag(etag, tag string) string
Constants ¶
This section is empty.
Variables ¶
var Prompt string
Prompt is Codex's generic system prompt (Apache-2.0, openai/codex, core/gpt-5.2-codex_prompt.md). Third-party models need one because the bundled catalog only carries prompts for OpenAI models.
Functions ¶
func CacheEntries ¶
CacheEntries is Codex's own models, as models_cache.json describes them for the ChatGPT account it last asked with, by slug.
func DefaultEffort ¶
DefaultEffort picks the middle of the road: "medium" or "high" when offered, else whatever the list starts with.
func Entries ¶
Entries renders models as models.json entries, ranked after the first `after`. Only fields Codex requires or that change behaviour are set; the rest take Codex's defaults.
func Remember ¶ added in v0.1.715
func Remember(entries []any)
Remember keeps the versions of entries as the backend gave them, before any is stamped: those of slugs it names are replaced, the rest kept.
func V1 ¶ added in v0.1.715
func V1() bool
V1 reports whether the OpenAI models magpie hands Codex say "v1".
func Window ¶ added in v0.1.757
Window has one of Codex's own entries say a context window of n tokens (none: as it says), and most at the most it may be raised to (0: as it says). Only those two fields change. An entry whose max_context_window is below its window — one the user set past what OpenAI lists — would say two things at once, and Codex may hold the window to the max, so the max is raised to it.
Types ¶
This section is empty.