Documentation
¶
Index ¶
- func Register()
- type Provider
- func (m *Provider) ContextWindow(string) int
- func (m *Provider) DefaultModel() string
- func (m *Provider) EstimateTokens(s string) int
- func (m *Provider) Name() string
- func (m *Provider) Pricing(string) provider.Pricing
- func (m *Provider) Review(ctx context.Context, req provider.Request) (provider.Response, error)
- func (m *Provider) ReviewStream(ctx context.Context, req provider.Request) (<-chan provider.Event, error)
- func (m *Provider) TestConnection(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
NameValue string
DefaultModelName string
Window int
PricingValue provider.Pricing
ResponseContent string
ChunkCount int
Latency time.Duration
InputTokens int
OutputTokens int
CachedInput int
// Error injection
ReviewErr error
StreamErr error
StreamErrAfter int // 0: synchronous (returned from ReviewStream); >0: emit EventError after N delta events
TestConnErr error
// Call telemetry
ReviewCalls int
StreamCalls int
TestCalls int
LastRequest provider.Request
// contains filtered or unexported fields
}
func (*Provider) ContextWindow ¶
func (*Provider) DefaultModel ¶
func (*Provider) EstimateTokens ¶
func (*Provider) ReviewStream ¶
Click to show internal directories.
Click to hide internal directories.