Documentation ¶
Index ¶
- func GetMappedModelName(modelName string, mapping map[string]string) (string, bool)
- type ChannelMeta
- type Meta
- func (m *Meta) AwsClient() *bedrockruntime.Client
- func (m *Meta) ClearValues()
- func (m *Meta) Delete(key string)
- func (m *Meta) Get(key string) (any, bool)
- func (m *Meta) GetBool(key string) bool
- func (m *Meta) GetString(key string) string
- func (m *Meta) MustGet(key string) any
- func (m *Meta) Reset(channel *model.Channel)
- func (m *Meta) Set(key string, value any)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelMeta ¶
type Meta ¶
type Meta struct { Channel *ChannelMeta Group *model.GroupCache Token *model.TokenCache RequestAt time.Time RequestID string OriginModelName string ActualModelName string Mode int PromptTokens int IsChannelTest bool // contains filtered or unexported fields }
func (*Meta) AwsClient ¶
func (m *Meta) AwsClient() *bedrockruntime.Client
func (*Meta) ClearValues ¶
func (m *Meta) ClearValues()
type Option ¶
type Option func(meta *Meta)
func WithChannelTest ¶
func WithGroup ¶
func WithGroup(group *model.GroupCache) Option
func WithRequestAt ¶
func WithRequestID ¶
func WithToken ¶
func WithToken(token *model.TokenCache) Option
Click to show internal directories.
Click to hide internal directories.