Documentation ¶
Index ¶
- func GetAuditID(ctx context.Context) (string, bool)
- func GetClient(ctx context.Context) (*clientpb.Client, bool)
- func GetClientToken(ctx context.Context) (*clienttokenpb.ClientToken, bool)
- func GetConfig(ctx context.Context) (*config.Config, bool)
- func GetIsStream(ctx context.Context) bool
- func GetLLMDirectorActualResponseBuffer(ctx context.Context) *bytes.Buffer
- func GetLogger(ctx context.Context) logs.Logger
- func GetMessageGroup(ctx context.Context) (*message.Group, bool)
- func GetModel(ctx context.Context) (*modelpb.Model, bool)
- func GetModelProvider(ctx context.Context) (*modelproviderpb.ModelProvider, bool)
- func GetSession(ctx context.Context) (*sessionpb.Session, bool)
- func GetUserPrompt(ctx context.Context) (string, bool)
- func MustGetDBClient(ctx context.Context) dao.DAO
- func MustGetModel(ctx context.Context) *modelpb.Model
- func MustGetModelProvider(ctx context.Context) *modelproviderpb.ModelProvider
- func PutAudioInfo(ctx context.Context, info AudioInfo)
- func PutAuditID(ctx context.Context, auditID string)
- func PutImageInfo(ctx context.Context, info ImageInfo)
- func PutIsStream(ctx context.Context, isStream bool)
- func PutMessageGroup(ctx context.Context, mg message.Group)
- func PutUserPrompt(ctx context.Context, prompt string)
- type AudioInfo
- type CtxKeyOfConfig
- type ImageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientToken ¶
func GetClientToken(ctx context.Context) (*clienttokenpb.ClientToken, bool)
func GetIsStream ¶
func GetModelProvider ¶
func GetModelProvider(ctx context.Context) (*modelproviderpb.ModelProvider, bool)
func MustGetModelProvider ¶
func MustGetModelProvider(ctx context.Context) *modelproviderpb.ModelProvider
func PutAudioInfo ¶
func PutAuditID ¶
func PutImageInfo ¶
func PutIsStream ¶
func PutUserPrompt ¶
Types ¶
type AudioInfo ¶
type AudioInfo struct { FileName string `json:"fileName"` FileSize bytesize.ByteSize `json:"fileSize"` FileHeaders textproto.MIMEHeader `json:"fileHeaders"` }
type CtxKeyOfConfig ¶
type CtxKeyOfConfig struct{ CtxKeyOfConfig any }
Click to show internal directories.
Click to hide internal directories.