common

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestPathPrefixV1ChatCompletions = "/v1/chat/completions"
	RequestPathPrefixV1Completions     = "/v1/completions"
	RequestPathPrefixV1Images          = "/v1/images"
	RequestPathPrefixV1Audio           = "/v1/audio"
	RequestPathPrefixV1Embeddings      = "/v1/embeddings"
	RequestPathPrefixV1Moderations     = "/v1/moderations"

	RequestPathPrefixV1Files = "/v1/files"

	RequestPathPrefixV1Assistants    = "/v1/assistants"
	RequestPathPrefixV1Threads       = "/v1/threads"
	RequestPathV1ThreadCreateMessage = "/v1/threads/{thread_id}/messages"
)

Variables

This section is empty.

Functions

func GetRequestRoutePath

func GetRequestRoutePath(ctx context.Context) string

Types

type On

type On struct {
	Key      string `json:"key" yaml:"key"`
	Operator string `json:"operator" yaml:"operator"`
	Value    string `json:"value" yaml:"value"`
}

On .

func (*On) On

func (on *On) On(header http.Header) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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