ai_provider

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.19.5

func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

Create 创建驱动实例

func NewFactory added in v0.19.5

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建service_http驱动工厂

func Register added in v0.19.5

func Register(register eosc.IExtenderDriverRegister)

Register AI供应商Factory

Types

type Config added in v0.19.5

type Config struct {
	Provider    string `json:"provider"`
	Model       string `json:"model"`
	ModelConfig string `json:"model_config"`
	Priority    int    `json:"priority"`
	Base        string `json:"base"`
}

type Factory added in v0.19.5

type Factory struct {
}

Directories

Path Synopsis
Package openAI defines the data structures used for OpenAI API requests and responses.
Package openAI defines the data structures used for OpenAI API requests and responses.

Jump to

Keyboard shortcuts

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