Const
Constants for the provider app.
- smarter.apps.provider.const.BUILTIN_PROVIDER_API_KEY_SECRET_NAMES = {'anthropic': 'anthropic_api_key', 'cohere': 'cohere_api_key', 'fireworks': 'fireworks_api_key', 'googleai': 'gemini_api_key', 'metaai': 'llama_api_key', 'mistral': 'mistral_api_key', 'openai': 'openai_api_key', 'togetherai': 'togetherai_api_key'}
The Smarter Secret of each built-in Provider’s API key, the Smarter admin’s, by the Provider’s name.
The key’s only source is that Secret (issue #1099): the init Job creates it from the platform’s bootstrap secrets (
manage.py initialize_bootstrap_secrets), an admin may set it in the web console or withsmarter apply, andinitialize_providersgives it to the Provider. No service reads the key from its environment.{ 'anthropic': 'anthropic_api_key', 'cohere': 'cohere_api_key', 'fireworks': 'fireworks_api_key', 'googleai': 'gemini_api_key', 'metaai': 'llama_api_key', 'mistral': 'mistral_api_key', 'openai': 'openai_api_key', 'togetherai': 'togetherai_api_key', }
- smarter.apps.provider.const.TASK_NAME_PREFIX = 'smarter.apps.provider.tasks'
The start of every provider task’s Celery name, e.g.
smarter.apps.provider.tasks.verify_provider.The tasks were one module,
tasks.py, and are now a package. Each task names itself with this prefix and its function’s name, whatever its module, because any message already waiting in Redis uses those names.
- smarter.apps.provider.const.presentation_app_name = 'Provider'
The app’s name as people read it, e.g. in the Django admin.
Translated where it is shown.