vars

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

Documentation

Index

Constants

View Source
const (
	XAIProxyHeaderPrefix       = "X-AI-Proxy-"
	XAIProxyChatType           = "X-AI-Proxy-ChatType"
	XAIProxyChatTitle          = "X-AI-Proxy-ChatTitle"
	XAIProxyChatId             = "X-AI-Proxy-ChatId"
	XAIProxySource             = "X-AI-Proxy-Source"
	XAIProxyName               = "X-AI-Proxy-Name"
	XAIProxyUsername           = "X-Ai-Proxy-Username"
	XAIProxyPhone              = "X-AI-Proxy-Phone"
	XAIProxyJobNumber          = "X-AI-Proxy-JobNumber"
	XAIProxyEmail              = "X-AI-Proxy-Email"
	XAIProxyDingTalkStaffID    = "X-AI-Proxy-DingTalkStaffID"
	XAIProxyProviderName       = "X-AI-Proxy-Provider-Name"
	XAIProxyProviderInstanceId = "X-AI-Proxy-Provider-Instance-Id"
	XAIProxyOrgId              = "X-Ai-Proxy-Org-Id"
	XAIProxyUserId             = "X-Ai-Proxy-User-Id"
	XAIProxyMetadata           = "X-Ai-Proxy-Metadata"
	XAiProxyErdaOpenapiSession = "X-Ai-Proxy-Erda-Openapi-Session"
	XRequestId                 = "X-Request-Id"

	XAIProxyModelId   = "X-AI-Proxy-Model-Id"
	XAIProxySessionId = "X-AI-Proxy-Session-Id"
	XAIProxyPromptId  = "X-AI-Proxy-Prompt-Id"

	UIValueUndefined = "undefined"
)
View Source
const (
	UserPromptStart = "'''\n"
	UserPromptEnd   = "\n'''"
)
View Source
const (
	EnvAIProxyAdminAuthKey = "AI_PROXY_ADMIN_AUTH_KEY"
)

Variables

This section is empty.

Functions

func ConcatBearer

func ConcatBearer(v string) string

func ConcatChunkDataPrefix

func ConcatChunkDataPrefix(v []byte) []byte

func GetFromHeader

func GetFromHeader(infor reverseproxy.HttpInfor, keys ...string) string

func TrimBearer

func TrimBearer(v string) string

func TrimChunkDataPrefix

func TrimChunkDataPrefix(v []byte) []byte

func TryUnwrapBase64

func TryUnwrapBase64(v string) string

func UnwrapUserPrompt

func UnwrapUserPrompt(v string) string

func WrapUserPrompt

func WrapUserPrompt(v string) string

Types

type CtxKeyClient

type CtxKeyClient struct{ CtxKeyClient any }

type CtxKeyClientId

type CtxKeyClientId struct{ CtxKeyClientId string }

type CtxKeyDAO

type CtxKeyDAO struct{ CtxKeyDAO any }

type CtxKeyErdaOpenapi

type CtxKeyErdaOpenapi struct{ CtxKeyErdaOpenapi any }

type CtxKeyIsAdmin

type CtxKeyIsAdmin struct{ CtxKeyIsAdmin bool }

type CtxKeyRichClientHandler

type CtxKeyRichClientHandler struct{ CtxKeyRichClientHandler any }

type MapKeyAudioInfo

type MapKeyAudioInfo struct{ MapKeyAudioInfo any }

type MapKeyAudit

type MapKeyAudit struct{ MapKeyAudit any }

type MapKeyClient

type MapKeyClient struct{ MapKeyClient any }

type MapKeyClientToken

type MapKeyClientToken struct{ MapKeyClientToken any }

type MapKeyImageInfo

type MapKeyImageInfo struct{ MapKeyImageInfo any }

type MapKeyIsStream

type MapKeyIsStream struct{ MapKeyIsStream any }

type MapKeyLLMDirectorActualResponseWriter

type MapKeyLLMDirectorActualResponseWriter struct{ MapKeyLLMDirectorActualResponseWriter any }

type MapKeyLLMDirectorPassedOnRequest

type MapKeyLLMDirectorPassedOnRequest struct{ MapKeyLLMDirectorPassedOnRequest any }

type MapKeyMessageGroup

type MapKeyMessageGroup struct{ MapKeyMessageGroup any }

type MapKeyModel

type MapKeyModel struct{ MapKeyModel any }

type MapKeyModelProvider

type MapKeyModelProvider struct{ MapKeyModelProvider any }

type MapKeyPromptTemplate

type MapKeyPromptTemplate struct{ MapKeyPromptTemplate any }

type MapKeySession

type MapKeySession struct{ MapKeySession any }

type MapKeyUserPrompt

type MapKeyUserPrompt struct{ MapKeyUserPrompt any }

Jump to

Keyboard shortcuts

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