File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1818GROQ_API_KEY = os .getenv ("GROQ_API_KEY" )
1919groq_client = groq .Client (api_key = GROQ_API_KEY )
2020
21+ GEMINI_API_KEY = os .getenv ("GEMINI_API_KEY" )
22+
2123if not GROQ_API_KEY :
2224 raise ValueError ("Please provide a GROQ API key" )
2325
@@ -31,6 +33,7 @@ async def health_check(request: Request):
3133 "uptime" : "OK" ,
3234 "api" : {
3335 "groq_api" : "connected" if GROQ_API_KEY else "not configured" ,
36+ "gemini_api" : "connected" if GEMINI_API_KEY else "not configured" ,
3437 },
3538 "ip" : requests .get ('https://api.ipify.org' ).text ,
3639 "services" : {
Original file line number Diff line number Diff line change 227227 < span class ="terminal-prompt "> > </ span >
228228 < a class ="terminal-link " href ="/stock-analysis/ " target ="_blank "> /stock-analysis</ a >
229229 </ li >
230+ < li class ="terminal-item ">
231+ < span class ="terminal-prompt "> > </ span >
232+ < a class ="terminal-link " href ="/health " target ="_blank "> /health</ a >
233+ </ li >
230234 </ ul >
231235 </ main >
232236 < footer >
You can’t perform that action at this time.
0 commit comments