File size: 663 Bytes
f2bab5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""

Configuration settings for Cloud Agents.

"""
from pydantic_settings import BaseSettings
from typing import Optional

class Settings(BaseSettings):
    """Settings for Cloud Agents configuration."""
    COUCHDB_URL: str = "http://localhost:5984"
    COUCHDB_USER: str = "admin"
    COUCHDB_PASSWORD: str = "password"
    COORDINATOR_HOST: str = "localhost"
    COORDINATOR_PORT: int = 8000
    MODEL_ID: str = "OpenPeerAI/OpenPeerLLM"
    RAY_HEAD_PORT: int = 6379
    BATCH_SIZE: int = 32
    GRADIENT_ACCUMULATION_STEPS: int = 4
    
    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"

settings = Settings()