ai.php 437 B

123456789101112
  1. <?php
  2. /**
  3. * config/ai.php
  4. *
  5. * Ollama LLM configuration shared by controllers that need AI inference.
  6. * Matches the setup used in controllers/ollamaGenerate.php.
  7. */
  8. define('OLLAMA_HOST', 'http://192.168.8.73:11434');
  9. define('OLLAMA_MODEL', 'llama3.1:8b-instruct-q4_K_M');
  10. define('OLLAMA_TIMEOUT', 60); // seconds — field mapping is fast
  11. define('OLLAMA_TEMPERATURE', 0.1); // low temp for deterministic JSON output