Shrot101 commited on
Commit
2c126c1
·
1 Parent(s): 6adbd7a

fix: add root route to avoid 404

Browse files
Files changed (1) hide show
  1. llmopt/api/app.py +9 -0
llmopt/api/app.py CHANGED
@@ -84,6 +84,15 @@ class ExplainRequest(BaseModel):
84
  # Endpoints
85
  # ---------------------------------------------------------------------------
86
 
 
 
 
 
 
 
 
 
 
87
  @app.get("/health")
88
  def health():
89
  return {"status": "ok", "version": "0.1.0"}
 
84
  # Endpoints
85
  # ---------------------------------------------------------------------------
86
 
87
+ @app.get("/")
88
+ def root():
89
+ return {
90
+ "message": "LLMOpt V2 API is running!",
91
+ "docs": "/docs",
92
+ "health": "/health"
93
+ }
94
+
95
+
96
  @app.get("/health")
97
  def health():
98
  return {"status": "ok", "version": "0.1.0"}