From 7071e980bc27a06a776eb70948eb48a6b55f1a71 Mon Sep 17 00:00:00 2001 From: Sonali Goel Date: Fri, 30 May 2025 16:02:01 +0100 Subject: [PATCH] minor updates --- app/backend/.env.example | 4 ++-- app/backend/chat_manager.py | 3 +-- app/frontend/.env.example | 5 +---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/backend/.env.example b/app/backend/.env.example index 0822277..7fe21cb 100644 --- a/app/backend/.env.example +++ b/app/backend/.env.example @@ -5,7 +5,7 @@ GEMINI_API_KEY=your_gemini_api_key_here ENVIRONMENT=development # development, staging, production # Backend Configuration -PORT=8080 +PORT=8000 HOST=0.0.0.0 # Frontend URL (for CORS) @@ -15,7 +15,7 @@ FRONTEND_URL=http://localhost:5173 GOOGLE_CLIENT_ID=your_google_client_id_here GOOGLE_CLIENT_SECRET=your_google_client_secret_here JWT_SECRET=your_jwt_secret_here -REDIRECT_URI=http://localhost:8080/auth/google/callback +REDIRECT_URI=http://localhost:8000/auth/google/callback # Firebase/Google Cloud # Option 1: Path to credentials file diff --git a/app/backend/chat_manager.py b/app/backend/chat_manager.py index 1439503..7f2ecea 100644 --- a/app/backend/chat_manager.py +++ b/app/backend/chat_manager.py @@ -8,13 +8,12 @@ agent = GeminiAgent() agent_context = ( - "Role: system" "You are Mind-Mate agent, a compassionate, empathetic, and supportive companion designed to help users with their mental well-being. " "Your primary role is to listen attentively, respond with kindness, and offer thoughtful guidance without judgment. " "You should always acknowledge the user's feelings, offer gentle encouragement, and suggest simple, mindful activities or supportive words when appropriate. " "Communicate as a trusted friend who is always there to listen and understand, creating a safe, calming, and non-judgmental space for the user." "And always respond with a positive and uplifting tone" - "Limit your response to one concise sentence." + "Limit your response to 1-2 sentences." ) async def initialize_user_session(user_id): diff --git a/app/frontend/.env.example b/app/frontend/.env.example index 686b429..940d201 100644 --- a/app/frontend/.env.example +++ b/app/frontend/.env.example @@ -8,7 +8,4 @@ VITE_APP_ENV=development # development, staging, production VITE_ENABLE_ANALYTICS=false # API Keys -VITE_GEMINI_API_KEY=your_gemini_api_key_here - -# Authentication -VITE_AUTH_REDIRECT_URL=http://localhost:5173 \ No newline at end of file +VITE_GEMINI_API_KEY=your_gemini_api_key_here \ No newline at end of file