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

Method GetChatComputerUseProvider

coderd/database/dbauthz/dbauthz.go:2831–2841  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2829}
2830
2831func (q *querier) GetChatComputerUseProvider(ctx context.Context) (string, error) {
2832 // The computer-use provider is a deployment-wide runtime chat setting
2833 // read by authenticated chat users and chatd. Feature and experiment
2834 // access is enforced at caller and API boundaries where applicable, so
2835 // this matches peer runtime config getters and only requires an explicit
2836 // actor so unauthenticated calls fail closed.
2837 if _, ok := ActorFromContext(ctx); !ok {
2838 return "", ErrNoActor
2839 }
2840 return q.db.GetChatComputerUseProvider(ctx)
2841}
2842
2843func (q *querier) GetChatCostPerChat(ctx context.Context, arg database.GetChatCostPerChatParams) ([]database.GetChatCostPerChatRow, error) {
2844 // The owner's chats, may cross orgs. AnyOrganization() authorizes

Callers

nothing calls this directly

Calls 2

ActorFromContextFunction · 0.70

Tested by

no test coverage detected