Add conifg Sample

This commit is contained in:
Raymond Zhou 2025-03-09 12:37:42 +08:00
parent 5e6d0e0ee6
commit 6480475d7c
2 changed files with 78 additions and 2 deletions

30
sample.config.toml Normal file
View file

@ -0,0 +1,30 @@
[GENERAL]
PORT = 3001 # Port to run the server on
SIMILARITY_MEASURE = "cosine" # "cosine" or "dot"
KEEP_ALIVE = "5m" # How long to keep Ollama models loaded into memory. (Instead of using -1 use "-1m")
[MODELS.OPENAI]
API_KEY = ""
[MODELS.GROQ]
API_KEY = ""
[MODELS.ANTHROPIC]
API_KEY = ""
[MODELS.GEMINI]
API_KEY = ""
[MODELS.CUSTOM_OPENAI]
API_KEY = ""
API_URL = ""
MODEL_NAME = ""
[MODELS.OLLAMA]
API_URL = "" # Ollama API URL - http://host.docker.internal:11434
[API_ENDPOINTS]
SEARXNG = "http://localhost:32768" # SearxNG API URL
[AUTH_PAGE]
AUTH_SECRET = "12345678" #Auth Secret for WebPage and APIs