feat: organize tools and enable qwen realtime calls
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user