manage.py get_llm_clients
This module is used to generate a JSON list of all llm_clients for an account, printed to the console.
- class smarter.apps.llm_client.management.commands.get_llm_clients.Command(*args, **kwargs)[source]
Bases:
SmarterCommandGenerate and print a JSON list of all llm_clients for a specified Smarter account.
This management command retrieves all llm_client instances associated with a given account, identified either by account number or company name. It outputs the hostnames of each llm_client to the console in JSON format, allowing administrators to quickly view all deployed llm_clients for an account.
- Usage:
Specify the account using
--account_numberor--company_name.
- Command Workflow:
Retrieve the account using the provided identifier.
Query all llm_clients linked to the account.
Print the hostname of each llm_client to the console.
Report completion status.
This command is useful for auditing, monitoring, or exporting llm_client deployment information for a particular account.