base

package
v0.0.0-...-e105d0e Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderRegistry = map[string]func(provider.Provider) Provider{}

Functions

This section is empty.

Types

type ChatCompletionProvider

type ChatCompletionProvider interface {
	ChatCompletions(context.Context, *chat.ChatCompletionRequest) (*chat.ChatCompletionResponse, error)
}

type Config

type Config struct {
	BaseURL         string
	ChatCompletions string
}

type Info

type Info struct {
	Title       string
	Name        string
	Description string
}

type Provider

type Provider interface {
	Info() Info
	Config() Config
	Models() []string
	Schema() []byte
}

type StreamChatCompletionsProvider

type StreamChatCompletionsProvider interface {
	StreamChatCompletions(context.Context, *chat.ChatCompletionRequest, chan []byte) error
}

Jump to

Keyboard shortcuts

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