Const
Constants for the prompt app.
- smarter.apps.prompt.const.SMARTER_CHAT_SESSION_KEY_NAME = 'session_key'
a Prompt’s field, the chat api’s parameter, and the browser cookie.
The web console and Smarter Chat have the same name in their own constants, which must stay in sync.
- Type:
The name of a chat’s session key
- smarter.apps.prompt.const.SMARTER_EXAMPLE_LLM_CLIENT_NAME = 'example'
The name of the example LLMClient, which
manage.py seed_chat_historyseeds a chat history for.
- smarter.apps.prompt.const.TASK_NAME_PREFIX = 'smarter.apps.prompt.tasks'
The start of every prompt task’s Celery name, e.g.
smarter.apps.prompt.tasks.create_prompt_history.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 Celery Beat’s schedule and any message already waiting in Redis use those names.
- smarter.apps.prompt.const.presentation_app_name = 'Prompt'
The app’s name as people read it, e.g. in the Django admin.
Translated where it is shown.