(Feat): Initial Commit
This commit is contained in:
46
backend_api/src/config/config.toml.example
Normal file
46
backend_api/src/config/config.toml.example
Normal file
@@ -0,0 +1,46 @@
|
||||
[server]
|
||||
host = "127.0.0.1"
|
||||
port = 3001
|
||||
|
||||
[anthropic]
|
||||
api_key = "your-anthropic-api-key-here"
|
||||
base_url = "https://api.anthropic.com/v1"
|
||||
model = "claude-3-5-sonnet-20241022"
|
||||
max_tokens = 4096
|
||||
temperature = 1.0
|
||||
|
||||
[ollama]
|
||||
base_url = "http://localhost:11434"
|
||||
model = "llama3.2"
|
||||
temperature = 0.7
|
||||
max_tokens = 4096
|
||||
|
||||
[rate_limiting]
|
||||
enabled = true
|
||||
# Requests per minute per guild
|
||||
guild_rate_limit = 30
|
||||
# Requests per minute per user
|
||||
user_rate_limit = 10
|
||||
# Rate limit window in seconds (default: 60)
|
||||
window_seconds = 60
|
||||
|
||||
[cache]
|
||||
enabled = true
|
||||
# Cache TTL in seconds (default: 3600 = 1 hour)
|
||||
ttl_seconds = 3600
|
||||
# Maximum number of cache entries (default: 1000)
|
||||
max_size = 1000
|
||||
|
||||
[credits]
|
||||
# Enable credit-based monetization
|
||||
enabled = true
|
||||
# User IDs that bypass the credit system (bot owners)
|
||||
bypass_user_ids = ["YOUR_DISCORD_USER_ID_HERE"]
|
||||
# Credits cost per summarization (default: 1)
|
||||
credits_per_summary = 1
|
||||
# Credits cost per OCR summarization (default: 2)
|
||||
credits_per_ocr = 2
|
||||
|
||||
[database]
|
||||
type = "sqlite"
|
||||
url = "sqlite:summarizer.db"
|
||||
Reference in New Issue
Block a user