models

package
v8.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package models builds model catalogs for official Codex clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResponse

func BuildResponse(availableModels []map[string]any, providersForModel ProvidersForModelFunc, optimizeMultiAgentV2 bool) map[string]any

BuildResponse builds a Codex client model response from available models.

func BuildResponseForClient

func BuildResponseForClient(availableModels []map[string]any, providersForModel ProvidersForModelFunc, optimizeMultiAgentV2 bool, clientVersion string) map[string]any

BuildResponseForClient builds a Codex client model response from available models tailored for a specific client version.

func BuildResponseForClientWithCPACapabilities

func BuildResponseForClientWithCPACapabilities(availableModels []map[string]any, providersForModel ProvidersForModelFunc, webSearchCapabilityForModel WebSearchCapabilityForModelFunc, optimizeMultiAgentV2 bool, clientVersion string) map[string]any

BuildResponseForClientWithCPACapabilities builds a client response while allowing Home to supply capability metadata independent of the local registry.

func MarshalCompact

func MarshalCompact(payload any) ([]byte, error)

MarshalCompact serializes a Codex client catalog as a single JSON line. HTML escaping is disabled so instruction text is not expanded into \u003c sequences.

Types

type ProvidersForModelFunc

type ProvidersForModelFunc func(string) []string

ProvidersForModelFunc returns the providers registered for a model.

type WebSearchCapabilityForModelFunc

type WebSearchCapabilityForModelFunc func(string) *bool

WebSearchCapabilityForModelFunc returns explicit conservative capability metadata for an exact public model ID. nil means unknown.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL