Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "context-audio"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(configJSON json.RawMessage) (reverseproxy.Filter, error)
Types ¶
type Config ¶
type Config struct { MaxAudioSizeStr string `json:"maxAudioSize" yaml:"maxAudioSize"` MaxAudioSize bytesize.ByteSize `json:"-" yaml:"-"` SupportedAudioFileTypes []string `json:"supportedAudioFileTypes" yaml:"supportedAudioFileTypes"` DefaultOpenAIAudioModel string `json:"defaultOpenAIAudioModel" yaml:"defaultOpenAIAudioModel"` }
type Context ¶
type Context struct {
Config *Config
}
func (*Context) OnRequest ¶
func (f *Context) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)
Click to show internal directories.
Click to hide internal directories.