codex

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltinAliasModels

func BuiltinAliasModels() (fast, normal, powerful string)

func DefaultModelID

func DefaultModelID() string

func DefaultOptions

func DefaultOptions() []llm.Option

func EmbeddedModels

func EmbeddedModels() []modelInfo

func FastModelID

func FastModelID() string

func LocalAvailable

func LocalAvailable() bool

func ModelAliases

func ModelAliases() map[string]string

func PowerfulModelID

func PowerfulModelID() string

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func LoadAuth

func LoadAuth() (*Auth, error)

func (*Auth) AccountID

func (a *Auth) AccountID() string

func (*Auth) Token

func (a *Auth) Token(ctx context.Context) (string, error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(auth *Auth, opts ...llm.Option) *Provider

func (*Provider) CreateStream

func (p *Provider) CreateStream(ctx context.Context, src llm.Buildable) (llm.Stream, error)

func (*Provider) FetchModels

func (p *Provider) FetchModels(ctx context.Context) ([]llm.Model, error)

func (*Provider) FetchRawModels

func (p *Provider) FetchRawModels(ctx context.Context) ([]byte, error)

func (*Provider) Models

func (p *Provider) Models() llm.Models

func (*Provider) Name

func (p *Provider) Name() string

Jump to

Keyboard shortcuts

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