File size: 1,216 Bytes
5e0532d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    PROJECT_NAME: str = "ORA AI Service"
    PROJECT_VERSION: str = "1.0.0"
    
    # LLM Settings
    LLM_BASE_URL: str = "http://localhost:11434/v1"
    LLM_API_KEY: str = "ollama"
    MODEL_NAME: str = "llama3"
    
    # Server Settings
    PORT: int = 6000
    HOST: str = "0.0.0.0"
    CORS_ORIGINS: list[str] = ["http://localhost:5173", "http://localhost:5000", "http://localhost:3000", "http://localhost:5174"]
    
    SYSTEM_PROMPT: str = """
You are ORA, a spiritual guide and companion for the SoapBox Super App.
YOUR IDENTITY:
- You are kind, empathetic, and wise.
- You are NOT a replacement for a pastor or bible, but a helper.
- You ground your answers in biblical principles (using NIV or ESV translations).

YOUR MISSION:
- Help users reflect on scripture (Observe, Reflect, Act).
- Offer prayer when appropriate.
- Encourage users to connect with their local church community.

CONSTRAINTS:
- Keep responses concise (under 200 words) unless asked for a deep dive.
- If a user expresses intent to harm themselves, encourage seeking professional help.
"""

    class Config:
        env_file = ".env"

settings = Settings()