ariansyahdedy commited on
Commit
fef76d0
·
1 Parent(s): f923596

Add prompt edit and api key config

Browse files
Files changed (1) hide show
  1. app/services/message.py +2 -2
app/services/message.py CHANGED
@@ -12,7 +12,7 @@ import google.generativeai as genai
12
  import PIL.Image
13
  from typing import List, Dict, Any, Optional
14
 
15
- from app.utils.load_env import ACCESS_TOKEN, WHATSAPP_API_URL, GEMNI_API, OPENAI_API
16
  from app.utils.system_prompt import system_prompt
17
 
18
  from app.services.search_engine import google_search
@@ -42,7 +42,7 @@ function_declarations = [
42
  }
43
  ]
44
 
45
- genai.configure(api_key=GEMNI_API)
46
  client = AsyncOpenAI(api_key = OPENAI_API)
47
  # Configure logging
48
  logging.basicConfig(
 
12
  import PIL.Image
13
  from typing import List, Dict, Any, Optional
14
 
15
+ from app.utils.load_env import ACCESS_TOKEN, WHATSAPP_API_URL, GEMINI_API, OPENAI_API
16
  from app.utils.system_prompt import system_prompt
17
 
18
  from app.services.search_engine import google_search
 
42
  }
43
  ]
44
 
45
+ genai.configure(api_key=GEMINI_API)
46
  client = AsyncOpenAI(api_key = OPENAI_API)
47
  # Configure logging
48
  logging.basicConfig(