From b0b7773ad8161faa19b306339b82a4eb94373d48 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 7 Jul 2026 17:46:51 +0530 Subject: [PATCH] chore: cleaup mps v1 billing --- AGENTS.md | 4 +- api/routes/knowledge_base.py | 4 +- api/routes/organization.py | 16 +- api/routes/organization_usage.py | 95 ++-------- api/services/auth/depends.py | 50 ------ api/services/gen_ai/embedding/factory.py | 48 +---- api/services/mps_service_key_client.py | 70 +------- api/services/quota_service.py | 132 ++++++-------- api/services/workflow/audit.py | 5 +- api/services/workflow/tools/knowledge_base.py | 3 +- api/services/workflow_run_billing.py | 13 -- api/tasks/knowledge_base_processing.py | 4 +- api/tests/test_ai_model_configuration_v2.py | 9 +- api/tests/test_auth_depends.py | 66 +------ api/tests/test_dograh_embedding_service.py | 80 +-------- api/tests/test_mps_service_key_client.py | 45 ----- api/tests/test_organization_usage_billing.py | 44 ++--- api/tests/test_quota_service.py | 29 +-- api/tests/test_workflow_run_billing.py | 49 ----- docs/api-reference/openapi.json | 2 +- pipecat | 2 +- .../src/dograh_sdk/_generated_models.py | 4 +- ui/package-lock.json | 170 +++++++++++------- ui/src/app/billing/page.tsx | 9 +- ui/src/app/model-configurations/page.tsx | 16 +- .../components/ModelConfigurationDialog.tsx | 54 ------ .../workflow/[workflowId]/settings/page.tsx | 47 ++--- ui/src/client/index.ts | 4 +- ui/src/client/sdk.gen.ts | 16 +- ui/src/client/types.gen.ts | 61 ------- ui/src/components/ModelConfigurationV2.tsx | 146 +-------------- ui/src/components/ServiceConfiguration.tsx | 37 ---- .../components/billing/DograhCreditsCard.tsx | 122 ------------- ui/src/context/OrgConfigContext.tsx | 31 +--- 34 files changed, 258 insertions(+), 1229 deletions(-) delete mode 100644 ui/src/app/workflow/[workflowId]/components/ModelConfigurationDialog.tsx delete mode 100644 ui/src/components/ServiceConfiguration.tsx delete mode 100644 ui/src/components/billing/DograhCreditsCard.tsx diff --git a/AGENTS.md b/AGENTS.md index 31472490..c69736d7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,7 +29,7 @@ Contributor setup and service startup are documented in `docs/contribution/setup ## Environment Configuration -- `api/.env` - Backend environment variables. Source this when running diagnostic scripts or one-off services against the dev DB (e.g. `python -m api.services.admin_utils.local_exec`). +- `api/.env` - Backend environment variables. Source this when running diagnostic scripts or one-off services against the dev DB (e.g. `python -m api.services.admin_utils.