feat: organize tools and enable qwen realtime calls

This commit is contained in:
Xin Wang
2026-08-14 00:15:00 +08:00
parent eb111a3890
commit 5be21f5ccc
71 changed files with 5771 additions and 2026 deletions
@@ -0,0 +1,38 @@
"""remove unsupported built-ins from realtime prompt assistants
Revision ID: 20260813_0022
Revises: 20260813_0021
"""
from __future__ import annotations
from collections.abc import Sequence
from alembic import op
import sqlalchemy as sa
revision: str = "20260813_0022"
down_revision: str | Sequence[str] | None = "20260813_0021"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None
def upgrade() -> None:
"""Make stored configuration match the current Realtime Prompt runtime."""
op.get_bind().execute(
sa.text(
"UPDATE assistants "
"SET built_in_tools = '{}'::jsonb "
"WHERE type = 'prompt' "
"AND runtime_mode = 'realtime' "
"AND built_in_tools <> '{}'::jsonb"
)
)
def downgrade() -> None:
# The removed values cannot be reconstructed and were never executable in
# Realtime Prompt sessions. Keep downgrade structurally safe and explicit.
pass