gemini

package
v1.18.18 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package gemini is used to provide the gemini service

Index

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

func NewProvider(apiKey string) *Provider

NewProvider creates a new gemini provider.

func (*Provider) GetChatCompletions added in v1.18.11

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.

func (*Provider) Name added in v1.18.11

func (p *Provider) Name() string

Name implements provider.LLMProvider.

Jump to

Keyboard shortcuts

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