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

Function lookupEnabledChatModelConfigByID

coderd/exp_chats.go:502–510  ·  view source on GitHub ↗
(
	ctx context.Context,
	db database.Store,
	id uuid.UUID,
)

Source from the content-addressed store, hash-verified

500}
501
502func lookupEnabledChatModelConfigByID(
503 ctx context.Context,
504 db database.Store,
505 id uuid.UUID,
506) (database.ChatModelConfig, error) {
507 //nolint:gocritic // Validation lookup uses AsChatd to check model
508 // availability independently of the caller's read permissions.
509 return db.GetEnabledChatModelConfigByID(dbauthz.AsChatd(ctx), id)
510}
511
512func validateChatModelOverrideID(
513 ctx context.Context,

Callers 1

Calls 2

AsChatdFunction · 0.92

Tested by

no test coverage detected