MCPcopy Index your code
hub / github.com/coder/coder / InsertChatModelConfig

Method InsertChatModelConfig

coderd/database/dbauthz/dbauthz.go:5519–5524  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertChatModelConfigParams)

Source from the content-addressed store, hash-verified

5517}
5518
5519func (q *querier) InsertChatModelConfig(ctx context.Context, arg database.InsertChatModelConfigParams) (database.ChatModelConfig, error) {
5520 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
5521 return database.ChatModelConfig{}, err
5522 }
5523 return q.db.InsertChatModelConfig(ctx, arg)
5524}
5525
5526func (q *querier) InsertChatQueuedMessage(ctx context.Context, arg database.InsertChatQueuedMessageParams) (database.ChatQueuedMessage, error) {
5527 chat, err := q.db.GetChatByID(ctx, arg.ChatID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertChatModelConfigMethod · 0.65

Tested by

no test coverage detected