models

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.0.30

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

BuildResponseForClient builds a Codex client model response tailored for a client version.

func BuildResponseForClientWithCPACapabilities added in v0.0.39

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 added in v0.0.45

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 escaped sequences. Ported from upstream CLIProxyAPI commit 673131f57484.

Types

type ProvidersForModelFunc

type ProvidersForModelFunc func(string) []string

ProvidersForModelFunc returns the providers registered for a model.

type WebSearchCapabilityForModelFunc added in v0.0.39

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