Documentation
¶
Index ¶
- Constants
- func ConcatBearer(v string) string
- func ConcatChunkDataPrefix(v []byte) []byte
- func GetFromHeader(infor reverseproxy.HttpInfor, keys ...string) string
- func TrimBearer(v string) string
- func TrimChunkDataPrefix(v []byte) []byte
- func TryUnwrapBase64(v string) string
- func UnwrapUserPrompt(v string) string
- func WrapUserPrompt(v string) string
- type CtxKeyClient
- type CtxKeyClientId
- type CtxKeyDAO
- type CtxKeyErdaOpenapi
- type CtxKeyIsAdmin
- type CtxKeyRichClientHandler
- type MapKeyAudioInfo
- type MapKeyAudit
- type MapKeyClient
- type MapKeyClientToken
- type MapKeyImageInfo
- type MapKeyIsStream
- type MapKeyLLMDirectorActualResponseWriter
- type MapKeyLLMDirectorPassedOnRequest
- type MapKeyMessageGroup
- type MapKeyModel
- type MapKeyModelProvider
- type MapKeyPromptTemplate
- type MapKeySession
- type MapKeyUserPrompt
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 ConcatChunkDataPrefix ¶
func GetFromHeader ¶
func GetFromHeader(infor reverseproxy.HttpInfor, keys ...string) string
func TrimBearer ¶
func TrimChunkDataPrefix ¶
func TryUnwrapBase64 ¶
func UnwrapUserPrompt ¶
func WrapUserPrompt ¶
Types ¶
type CtxKeyClient ¶
type CtxKeyClient struct{ CtxKeyClient any }
type CtxKeyClientId ¶
type CtxKeyClientId struct{ CtxKeyClientId string }
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 }
Click to show internal directories.
Click to hide internal directories.