Environment variables

Environment Variables

Create a .env.local file in the project root and add your configuration:

OPENAI_API_KEY="your-openai-api-key"
OPENAI_BASE_URL="optional-custom-url"

TASK_SPECIFIC_PROMPT="your-task-specific-assistant-prompt"
TASK_CREATIVE_LEVEL="set-creativity-level (0-1, lower = stricter)"

Explanation of Variables:

  • OPENAI_API_KEY – Required for accessing OpenAI’s NLP models.

  • OPENAI_BASE_URL (optional) – Use a custom API endpoint instead of the default OpenAI service.

  • TASK_SPECIFIC_PROMPT – Define the assistant’s primary role and behavior for task-specific interactions.

  • TASK_CREATIVE_LEVEL – Adjust the AI’s response flexibility:

    • 0 – Strictly follows the prompt with minimal deviation.

    • 1 – Generates highly creative and varied responses.

Last updated