assets

package
v1.3.0-rc.0...-12c9840 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name         = "assets"
	AssetFileDir = "/tmp/ai-proxy/assets/" // auto clean by system when container restart
)

Variables

This section is empty.

Functions

func Available

func Available() bool

func New

func Upload

func Upload(fileName string, data []byte) (string, error)

Upload return public download url for LLM use.

Types

type Filter

type Filter struct {
}

func (*Filter) OnRequest

func (f *Filter) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)

Jump to

Keyboard shortcuts

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