(ctx context.Context)
| 2829 | } |
| 2830 | |
| 2831 | func (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 | |
| 2843 | func (q *querier) GetChatCostPerChat(ctx context.Context, arg database.GetChatCostPerChatParams) ([]database.GetChatCostPerChatRow, error) { |
| 2844 | // The owner's chats, may cross orgs. AnyOrganization() authorizes |
nothing calls this directly
no test coverage detected