Documentation
¶
Index ¶
- Constants
- func IsOpenCode(profile string) bool
- func NewCatalog(config model.Config) (model.ModelLister, error)
- func OpenCodeEndpoint(profile string) string
- func OpenCodeProtocol(id string) string
- type Provider
- func (p *Provider) EstimateUsage(request model.TurnRequest) model.Usage
- func (p *Provider) ListModels(ctx context.Context) ([]model.Model, error)
- func (p *Provider) Probe(ctx context.Context) (model.Capabilities, error)
- func (p *Provider) StreamTurn(ctx context.Context, request model.TurnRequest, emit func(model.Event) error) error
Constants ¶
View Source
const ( OpenCodeZen = "opencode_zen" OpenCodeGo = "opencode_go" )
Variables ¶
This section is empty.
Functions ¶
func IsOpenCode ¶
func NewCatalog ¶
func NewCatalog(config model.Config) (model.ModelLister, error)
func OpenCodeEndpoint ¶
func OpenCodeProtocol ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) EstimateUsage ¶
func (p *Provider) EstimateUsage(request model.TurnRequest) model.Usage
func (*Provider) ListModels ¶
Click to show internal directories.
Click to hide internal directories.