feat: add thinking support (#100)

* feat: add thinking support

* feat: improve thinking block render in web and filter thinking content in channels

* fix: migrate
This commit is contained in:
Acbox Liu
2026-02-23 14:41:27 +08:00
committed by GitHub
parent 18535f97f2
commit 17cd077f34
31 changed files with 530 additions and 118 deletions
+4 -1
View File
@@ -36,7 +36,7 @@ DELETE FROM llm_providers WHERE id = sqlc.arg(id);
SELECT COUNT(*) FROM llm_providers;
-- name: CreateModel :one
INSERT INTO models (model_id, name, llm_provider_id, client_type, dimensions, input_modalities, type)
INSERT INTO models (model_id, name, llm_provider_id, client_type, dimensions, input_modalities, supports_reasoning, type)
VALUES (
sqlc.arg(model_id),
sqlc.arg(name),
@@ -44,6 +44,7 @@ VALUES (
sqlc.narg(client_type),
sqlc.arg(dimensions),
sqlc.arg(input_modalities),
sqlc.arg(supports_reasoning),
sqlc.arg(type)
)
RETURNING *;
@@ -93,6 +94,7 @@ SET
client_type = sqlc.narg(client_type),
dimensions = sqlc.arg(dimensions),
input_modalities = sqlc.arg(input_modalities),
supports_reasoning = sqlc.arg(supports_reasoning),
type = sqlc.arg(type),
updated_at = now()
WHERE id = sqlc.arg(id)
@@ -107,6 +109,7 @@ SET
client_type = sqlc.narg(client_type),
dimensions = sqlc.arg(dimensions),
input_modalities = sqlc.arg(input_modalities),
supports_reasoning = sqlc.arg(supports_reasoning),
type = sqlc.arg(type),
updated_at = now()
WHERE model_id = sqlc.arg(model_id)