21 lines
657 B
Python
21 lines
657 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
anthropic_api_key: str = ""
|
|
redis_url: str = "redis://chatbot-redis:6379"
|
|
rocketchat_url: str = "https://chat.ai-impress.com"
|
|
rocketchat_auth_token: str = ""
|
|
rocketchat_user_id: str = ""
|
|
n8n_webhook_url: str = "https://n8n.ai-impress.com/webhook"
|
|
max_messages_per_session: int = 30
|
|
max_message_length: int = 500
|
|
conversation_window: int = 15
|
|
max_response_tokens: int = 300
|
|
conversation_ttl: int = 86400 # 24 hours
|
|
model: str = "claude-sonnet-4-6"
|
|
|
|
model_config = {"env_file": ".env"}
|
|
|
|
|
|
settings = Settings()
|