Help us shape the future of Go! Take the 2026 Go Developer Survey

compatible

package
v0.2.32 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenCodeZen = "opencode_zen"
	OpenCodeGo  = "opencode_go"
)

Variables

This section is empty.

Functions

func IsOpenCode

func IsOpenCode(profile string) bool

func NewCatalog

func NewCatalog(config model.Config) (model.ModelLister, error)

func OpenCodeEndpoint

func OpenCodeEndpoint(profile string) string

func OpenCodeProtocol

func OpenCodeProtocol(id string) string

Types

type Provider

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

func New

func New(config model.Config) (*Provider, error)

func (*Provider) EstimateUsage

func (p *Provider) EstimateUsage(request model.TurnRequest) model.Usage

func (*Provider) ListModels

func (p *Provider) ListModels(ctx context.Context) ([]model.Model, error)

func (*Provider) Probe

func (p *Provider) Probe(ctx context.Context) (model.Capabilities, error)

func (*Provider) StreamTurn

func (p *Provider) StreamTurn(ctx context.Context, request model.TurnRequest, emit func(model.Event) error) error

Jump to

Keyboard shortcuts

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