azure

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFallthroughModel = "gpt-4o-mini"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureOpenAIEngine

type AzureOpenAIEngine struct {
	// contains filtered or unexported fields
}

func NewAzureOpenAIEngineWithConfig

func NewAzureOpenAIEngineWithConfig(configStr string) (*AzureOpenAIEngine, error)

func (*AzureOpenAIEngine) IsAllowedPath

func (e *AzureOpenAIEngine) IsAllowedPath(path string) bool

func (*AzureOpenAIEngine) ModifyRequest

func (e *AzureOpenAIEngine) ModifyRequest(r *http.Request)

func (*AzureOpenAIEngine) Name

func (e *AzureOpenAIEngine) Name() string

func (*AzureOpenAIEngine) ResponseCallback added in v0.1.5

func (e *AzureOpenAIEngine) ResponseCallback(resp *http.Response, body io.Reader)

type BackendConfig

type BackendConfig struct {
	BaseUrl     string `yaml:"base_url"`
	APIKey      string `yaml:"api_key"`
	APIVersion  string `yaml:"api_version"`
	BackendURL  *url.URL
	IsActive    bool
	Connections int64
}

Jump to

Keyboard shortcuts

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