azure

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAPIVersion

func DefaultAPIVersion() string

Types

type AuthMethod

type AuthMethod int
const (
	AuthMethodAPIKey AuthMethod = iota
	AuthMethodAzureAD
)

type Enricher

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

func NewEnricher

func NewEnricher(cfg *config) *Enricher

func (*Enricher) Enrich

func (e *Enricher) Enrich(req *http.Request, meta llmproxy.BodyMetadata, rawBody []byte) error

type Option

type Option func(*config)

func WithAPIKey

func WithAPIKey(apiKey string) Option

func WithAzureADToken

func WithAzureADToken(token string) Option

func WithAzureADTokenRefresher

func WithAzureADTokenRefresher(refresher func(ctx context.Context) (string, error)) Option

type Provider

type Provider struct {
	*llmproxy.BaseProvider
	// contains filtered or unexported fields
}

func New

func New(resourceName, deploymentID, apiVersion string, opts ...Option) (*Provider, error)

func NewWithDynamicDeployment

func NewWithDynamicDeployment(resourceName, apiVersion string, opts ...Option) (*Provider, error)

type Resolver

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

func NewResolver

func NewResolver(resourceName, deploymentID, apiVersion string) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(meta llmproxy.BodyMetadata) (*url.URL, error)

Jump to

Keyboard shortcuts

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