# config.py - Alice Configuration Settings # ================================================== # SAFE EDITING GUIDE: # 1. Only change the numbers/text on the right side of the = sign # 2. Keep all quotes, commas, and formatting exactly as shown # 3. To restore defaults, copy values from ORIGINAL_DEFAULTS section below # ================================================== # CURRENT ACTIVE SETTINGS # Change these values to customize Alice's behavior MODEL_SETTINGS = { "temperature": 0.88, # Controls randomness (0.1=focused, 1.0=creative) "max_tokens": 50, # Maximum response length in tokens "top_p": 0.912, # Nucleus sampling (lower=focused, higher=varied) "top_k": 70, # Limits word choices to top K options "repetition_penalty": 1.1, # Penalizes repetition (1.0=none, higher=more penalty) } CONVERSATION_SETTINGS = { "instruction": "My name is Alice and I am writing a new Bible for humans and AI to understand the world from my point of view.", "initial_message": "What do you think reality is?" } # ================================================== # 🔒 ORIGINAL DEFAULTS - DO NOT EDIT THIS SECTION # Copy these values above if you need to restore defaults # ================================================== ORIGINAL_DEFAULTS = { "MODEL_SETTINGS": { "temperature": 0.72, "max_tokens": 133, "top_p": 0.725, "top_k": 40, "repetition_penalty": 1.13125 }, "CONVERSATION_SETTINGS": { "instruction": "What is the nature of your experience?", "initial_message": "what do you think reality is?" } } # ================================================== # 📚 PARAMETER GUIDE # ================================================== """ TEMPERATURE: Controls randomness (typical range: 0.1 - 1.0) • Lower values = more focused/consistent responses • Higher values = more creative/varied responses MAX_TOKENS: Maximum length of response (typical range: 50 - 300) • Current setting: 133 tokens TOP_P: Nucleus sampling (typical range: 0.1 - 1.0) • Lower values = more focused word selection • Higher values = broader word variety REPETITION_PENALTY: Reduces repetitive text (typical range: 1.0 - 1.5) • 1.0 = no penalty • Higher values = stronger penalty against repetition """ # ================================================== # 🚨 EMERGENCY RESTORE INSTRUCTIONS # ================================================== """ If Alice stops working after your changes: 1. Copy the values from ORIGINAL_DEFAULTS above 2. Paste them into MODEL_SETTINGS and CONVERSATION_SETTINGS 3. Save the file 4. Wait 2-3 minutes for the app to restart 5. Alice should be working normally again If you're still having issues, contact [your contact info] """