provider

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ChatGPTv1 = "chatgpt/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Name        string `json:"name" yaml:"name"`
	InstanceId  string `json:"instanceId" yaml:"instanceId"`
	Host        string `json:"host" yaml:"host"`
	Scheme      string `json:"scheme" yaml:"scheme"`
	Description string `json:"description" yaml:"description"`
	DocSite     string `json:"docSite" yaml:"docSite"`

	// appKey provided by ai-proxy, you can use an expression like ${ env.CHATGPT_APP_KEY }
	AppKey string `json:"appKey" yaml:"appKey"`

	// secretKey provided by ai-proxy, you can use an expression like ${ env.CHATGPT_APP_KEY }
	Organization string `json:"organization" yaml:"organization"`

	Metadata map[string]string `json:"metadata" yaml:"metadata"`
}

func (*Provider) GetAppKey

func (p *Provider) GetAppKey() string

func (*Provider) GetHost

func (p *Provider) GetHost() string

func (*Provider) GetOrganization

func (p *Provider) GetOrganization() string

type Providers

type Providers []*Provider

Jump to

Keyboard shortcuts

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