mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: use AI provider chat APIs (#25415)
This commit is contained in:
@@ -6,6 +6,18 @@ FROM
|
||||
WHERE
|
||||
id = @id::uuid AND deleted = FALSE;
|
||||
|
||||
-- name: GetAIProviderByIDForReferenceLock :one
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
ai_providers
|
||||
WHERE
|
||||
id = @id::uuid AND deleted = FALSE
|
||||
-- Lock the provider row until the model-config write completes. The
|
||||
-- transaction alone does not stop a concurrent soft-delete or disable
|
||||
-- between validation and writing the model config reference.
|
||||
FOR SHARE;
|
||||
|
||||
-- name: GetAIProviderByName :one
|
||||
SELECT
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user