Documentation ¶
Overview ¶
Package gemini is used to provide the gemini service
Index ¶
- type Provider
- func (p *Provider) GetChatCompletions(ctx context.Context, req openai.ChatCompletionRequest, md metadata.M) (openai.ChatCompletionResponse, error)
- func (p *Provider) GetChatCompletionsStream(ctx context.Context, req openai.ChatCompletionRequest, md metadata.M) (provider.ResponseRecver, error)
- func (p *Provider) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶ added in v1.18.11
type Provider struct {
// contains filtered or unexported fields
}
Provider is the provider for google gemini.
func NewProvider ¶
NewProvider creates a new gemini provider.
func (*Provider) GetChatCompletions ¶ added in v1.18.11
func (p *Provider) GetChatCompletions(ctx context.Context, req openai.ChatCompletionRequest, md metadata.M) (openai.ChatCompletionResponse, error)
GetChatCompletions implements provider.LLMProvider.
func (*Provider) GetChatCompletionsStream ¶ added in v1.18.11
func (p *Provider) GetChatCompletionsStream(ctx context.Context, req openai.ChatCompletionRequest, md metadata.M) (provider.ResponseRecver, error)
GetChatCompletionsStream implements provider.LLMProvider.
Click to show internal directories.
Click to hide internal directories.