mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-22 11:51:04 +02:00
fix: changes to update pipecat version to 0.0.100 (#122)
* feat: add stt evals * add smart turn as provider * chore: remove deprecations * chore: format files * fix: remove deprecated UserIdleProcessor * fix: remove deprecated TranscriptProcessor * chore: update pipecat submodule * feat: add evals visualisation * fix: trigger llm generation on client connected and pipeline started * chore: update pipecat * chore: update pipecat submodule * Add tests * fix: slow loading of workflow page * chore: update pipecat submodule * Show version after release * Fixes #99 * fix: provider check for websocket connection * Fixes #107 * Fix #96 * chore: fix documentation * fix: cloudonix campaign call error --------- Co-authored-by: Sabiha Khan <sabihak89@gmail.com>
This commit is contained in:
parent
a4367bd83b
commit
911c5ed416
104 changed files with 16919 additions and 597 deletions
72
api/alembic/versions/181475b2a1a1_add_public_access_token.py
Normal file
72
api/alembic/versions/181475b2a1a1_add_public_access_token.py
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
"""add public_access_token
|
||||
|
||||
Revision ID: 181475b2a1a1
|
||||
Revises: dc33eef8dabe
|
||||
Create Date: 2026-01-23 17:37:54.449308
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "181475b2a1a1"
|
||||
down_revision: Union[str, None] = "dc33eef8dabe"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index(op.f("ix_api_keys_key_hash"), table_name="api_keys")
|
||||
op.create_index("ix_api_keys_key_hash", "api_keys", ["key_hash"], unique=False)
|
||||
op.create_index(
|
||||
"ix_kb_chunks_embedding_ivfflat",
|
||||
"knowledge_base_chunks",
|
||||
["embedding"],
|
||||
unique=False,
|
||||
postgresql_using="ivfflat",
|
||||
postgresql_with={"lists": 100},
|
||||
postgresql_ops={"embedding": "vector_cosine_ops"},
|
||||
)
|
||||
op.create_index(
|
||||
"ix_kb_chunks_embedding_model",
|
||||
"knowledge_base_chunks",
|
||||
["embedding_model"],
|
||||
unique=False,
|
||||
)
|
||||
op.add_column(
|
||||
"workflow_runs",
|
||||
sa.Column("public_access_token", sa.String(length=36), nullable=True),
|
||||
)
|
||||
op.create_index(
|
||||
"idx_workflow_runs_public_access_token",
|
||||
"workflow_runs",
|
||||
["public_access_token"],
|
||||
unique=True,
|
||||
postgresql_where=sa.text("public_access_token IS NOT NULL"),
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index(
|
||||
"idx_workflow_runs_public_access_token",
|
||||
table_name="workflow_runs",
|
||||
postgresql_where=sa.text("public_access_token IS NOT NULL"),
|
||||
)
|
||||
op.drop_column("workflow_runs", "public_access_token")
|
||||
op.drop_index("ix_kb_chunks_embedding_model", table_name="knowledge_base_chunks")
|
||||
op.drop_index(
|
||||
"ix_kb_chunks_embedding_ivfflat",
|
||||
table_name="knowledge_base_chunks",
|
||||
postgresql_using="ivfflat",
|
||||
postgresql_with={"lists": 100},
|
||||
postgresql_ops={"embedding": "vector_cosine_ops"},
|
||||
)
|
||||
op.drop_index("ix_api_keys_key_hash", table_name="api_keys")
|
||||
op.create_index(op.f("ix_api_keys_key_hash"), "api_keys", ["key_hash"], unique=True)
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue