mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
* 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>
68 lines
2.6 KiB
Python
68 lines
2.6 KiB
Python
from fastapi import APIRouter
|
|
from loguru import logger
|
|
from pydantic import BaseModel
|
|
|
|
from api.routes.campaign import router as campaign_router
|
|
from api.routes.credentials import router as credentials_router
|
|
from api.routes.integration import router as integration_router
|
|
from api.routes.knowledge_base import router as knowledge_base_router
|
|
from api.routes.looptalk import router as looptalk_router
|
|
from api.routes.organization import router as organization_router
|
|
from api.routes.organization_usage import router as organization_usage_router
|
|
from api.routes.public_agent import router as public_agent_router
|
|
from api.routes.public_download import router as public_download_router
|
|
from api.routes.public_embed import router as public_embed_router
|
|
from api.routes.reports import router as reports_router
|
|
from api.routes.s3_signed_url import router as s3_router
|
|
from api.routes.service_keys import router as service_keys_router
|
|
from api.routes.superuser import router as superuser_router
|
|
from api.routes.telephony import router as telephony_router
|
|
from api.routes.tool import router as tool_router
|
|
from api.routes.user import router as user_router
|
|
from api.routes.webrtc_signaling import router as webrtc_signaling_router
|
|
from api.routes.workflow import router as workflow_router
|
|
from api.routes.workflow_embed import router as workflow_embed_router
|
|
|
|
router = APIRouter(
|
|
tags=["main"],
|
|
responses={404: {"description": "Not found"}},
|
|
)
|
|
|
|
router.include_router(telephony_router)
|
|
router.include_router(superuser_router)
|
|
router.include_router(workflow_router)
|
|
router.include_router(user_router)
|
|
router.include_router(campaign_router)
|
|
router.include_router(credentials_router)
|
|
router.include_router(tool_router)
|
|
router.include_router(integration_router)
|
|
router.include_router(organization_router)
|
|
router.include_router(s3_router)
|
|
router.include_router(service_keys_router)
|
|
router.include_router(looptalk_router)
|
|
router.include_router(organization_usage_router)
|
|
router.include_router(reports_router)
|
|
router.include_router(webrtc_signaling_router)
|
|
router.include_router(public_embed_router)
|
|
router.include_router(public_agent_router)
|
|
router.include_router(public_download_router)
|
|
router.include_router(workflow_embed_router)
|
|
router.include_router(knowledge_base_router)
|
|
|
|
|
|
class HealthResponse(BaseModel):
|
|
status: str
|
|
version: str
|
|
backend_api_endpoint: str
|
|
|
|
|
|
@router.get("/health", response_model=HealthResponse)
|
|
async def health() -> HealthResponse:
|
|
from api.constants import APP_VERSION, BACKEND_API_ENDPOINT
|
|
|
|
logger.debug("Health endpoint called")
|
|
return HealthResponse(
|
|
status="ok",
|
|
version=APP_VERSION,
|
|
backend_api_endpoint=BACKEND_API_ENDPOINT,
|
|
)
|