# D:\GNPL-Private\TimeCraft\backend\.env # .env - Environment variables for the FastAPI Backend # --- Frontend URL for CORS configuration --- # Set this to the URL where your React frontend is hosted. # For local development, it's typically http://localhost:3000. FRONTEND_URL=http://localhost:3000 # --- LLM Provider Configuration --- # Choose which Large Language Model provider to use. # Options: # - GENERIC_API: For any LLM accessible via a standard HTTP API (e.g., OpenAI, Google Gemini, custom APIs) # - HUGGINGFACE: For models loaded locally using the 'transformers' library # - OLLAMA: For local Ollama server deployments LLM_PROVIDER=OLLAMA # --- Settings for GENERIC_API Provider (currently commented out as LLM_PROVIDER is OLLAMA) --- # These variables are required if LLM_PROVIDER is set to GENERIC_API. # LLM_API_KEY: Your API key for the chosen generic LLM service. # LLM_API_URL: The API endpoint URL for the chosen generic LLM service. # Examples: # LLM_API_KEY=sk-your_openai_api_key_here # LLM_API_URL=https://api.openai.com/v1/chat/completions # For Google Gemini API (if using with a generic setup, though often has specific client libraries) # LLM_API_KEY=your_google_gemini_api_key_here # LLM_API_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent # LLM_API_KEY=your_generic_llm_api_key_here # LLM_API_URL=https://api.openai.com/v1/chat/completions # --- Settings for HUGGINGFACE Provider (currently commented out as LLM_PROVIDER is OLLAMA) --- # These variables are required if LLM_PROVIDER is set to HUGGINGFACE. # HF_MODEL_NAME: The model identifier from Hugging Face Hub (e.g., google/gemma-2b-it, meta-llama/Llama-2-7b-chat-hf). # Ensure you have sufficient RAM/VRAM for the chosen model. # HUGGING_FACE_HUB_TOKEN: Your Hugging Face access token, often required for private models or higher rate limits. # Uncomment and set this if necessary. # HF_MODEL_NAME=google/gemma-2b-it # HUGGING_FACE_HUB_TOKEN=hf_your_hugging_face_token_here # --- Settings for OLLAMA Provider (currently active as LLM_PROVIDER is OLLAMA) --- # These variables are required if LLM_PROVIDER is set to OLLAMA. # OLLAMA_MODEL_NAME: The name of the model downloaded in your local Ollama instance (e.g., llama2, mistral). # OLLAMA_API_URL: The URL of your local Ollama API. Default is typically http://localhost:11434/api/generate. # NOTE: Use "ollama" as the hostname inside Docker Compose, not "localhost" OLLAMA_MODEL_NAME=qwen3:4b # CHANGED: Model updated to deepseek-r1:1.5b OLLAMA_API_URL=http://ollama:11434/api/generate