manage.py deploy_example_llmclient
This module is used to initialize the environment.
- class smarter.apps.llmclient.management.commands.deploy_example_llmclient.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 llmclient 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 llmclient exists, creating it if necessary.
Sets default provider, model, system role, temperature, and token limits for the llmclient.
Configures demo-specific application metadata, such as name, assistant, welcome message, example prompts, and branding.
Attaches example plugins to the llmclient if they are available for the account.
Initiates deployment of the llmclient, either synchronously (foreground) or asynchronously (Celery task).
Reports deployment status and completion.
The deployed demo llmclient 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.