manage.py deploy_example_llm_client
This module is used to initialize the environment.
- class smarter.apps.llm_client.management.commands.deploy_example_llm_client.Command(*args, **kwargs)[source]
Bases:
SmarterCommandDeploy the Smarter demo LLMClient for demonstration and testing purposes.
This management command provisions and deploys a pre-configured demo llm_client for the Smarter platform. It is intended to showcase platform features and provide a ready-to-use example for evaluation or onboarding.
- The command performs the following actions:
Retrieves the demo account and its admin user.
Ensures the demo llm_client exists, creating it if necessary.
Sets default provider, model, system role, temperature, and token limits for the llm_client.
Configures demo-specific application metadata, such as name, assistant, welcome message, example prompts, and branding.
Attaches example plugins to the llm_client if they are available for the account.
Initiates deployment of the llm_client, either synchronously (foreground) or asynchronously (Celery task).
Reports deployment status and completion.
The deployed demo llm_client is accessible via a public URL and is configured to demonstrate typical user interactions, plugin integration, and platform branding. This command is useful for quickly setting up a showcase environment or verifying platform functionality.