We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8982f7f commit d7ac4bfCopy full SHA for d7ac4bf
KnowledgeBaseBot/auto_answer_bot.py
@@ -15,7 +15,10 @@
15
exit(1)
16
MODEL_NAME = 'all-MiniLM-L6-v2'
17
K_NEAREST_NEIGHBORS = 5 # Number of similar items to retrieve
18
-genai.configure(api_key=os.getenv('GEMINI_API_KEY'))
+GEMINI_API_KEY = os.getenv('GEMINI_API_KEY')
19
+if not GEMINI_API_KEY:
20
+ exit("Missed GEMINI api key")
21
+genai.configure(api_key=GEMINI_API_KEY)
22
23
# --- Initialization ---
24
g = Github(GITHUB_TOKEN)
0 commit comments