feat(config): Use toml instead of env

This commit is contained in:
ItzCrazyKns
2024-04-20 09:32:19 +05:30
parent dd1ce4e324
commit c6a5790d33
26 changed files with 799 additions and 596 deletions

9
sample.config.toml Normal file
View File

@ -0,0 +1,9 @@
[GENERAL]
PORT = 3001 # Port to run the server on
SIMILARITY_MEASURE = "cosine" # "cosine" or "dot"
[API_KEYS]
OPENAI = "sk-1234567890abcdef1234567890abcdef" # OpenAI API key
[API_ENDPOINTS]
SEARXNG = "http://localhost:32768" # SearxNG API ULR