Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAIProvider ¶
type OpenAIProvider struct {
// contains filtered or unexported fields
}
OpenAIProvider implements the Provider interface for OpenAI-compatible APIs.
func NewProvider ¶
func NewProvider(id, apiKey, baseURL string) *OpenAIProvider
NewProvider creates a new OpenAIProvider.
func (*OpenAIProvider) Generate ¶
func (p *OpenAIProvider) Generate(ctx context.Context, params provider.GenerateParams) (iter.Seq2[provider.StreamEvent, error], error)
Generate streams responses for the given conversation.
func (*OpenAIProvider) ListModels ¶
ListModels returns a list of available models.
Click to show internal directories.
Click to hide internal directories.