manage.py undeploy_llm_client
This module is used to deploy a customer API.
- class smarter.apps.llm_client.management.commands.undeploy_llm_client.Command(*args, **kwargs)[source]
Bases:
SmarterCommandUndeploy a customer-facing llm_client API for a Smarter account.
This management command allows administrators to remove a deployed llm_client from a specific account, identified either by account number or company name. The undeployment process deletes the DNS A record associated with the llm_client, effectively disabling its public endpoint at
[subdomain].[account-number].api.example.com/llm-client/.- Usage:
Specify the account using either
--account_numberor--company_name.Provide the llm_client’s name (subdomain) via
--name.Optionally use
--foregroundto run the undeployment synchronously.
- Command Workflow:
Retrieve the account by account number or company name.
Locate the llm_client by name within the account.
Verify that the llm_client is currently deployed and DNS is verified.
Initiate undeployment, either synchronously or as a background Celery task.
Output progress and completion messages.
This command is useful for decommissioning llm_clients, managing DNS records, and ensuring that endpoints are properly removed when llm_clients are no longer needed or require redeployment.