lucianotonet commited on
Commit
e3e96e3
·
1 Parent(s): de12eb8

Added root route that returns server status message

Browse files
Files changed (1) hide show
  1. app/server.py +5 -0
app/server.py CHANGED
@@ -15,6 +15,11 @@ app = FastAPI(
15
  description="A simple api server using Langchain's Runnable interfaces",
16
  )
17
 
 
 
 
 
 
18
  add_routes(
19
  path = "/openai",
20
  app = app,
 
15
  description="A simple api server using Langchain's Runnable interfaces",
16
  )
17
 
18
+ @app.get("/")
19
+ async def root():
20
+ # return json response
21
+ return {"message": "LangChain Server is running"}
22
+
23
  add_routes(
24
  path = "/openai",
25
  app = app,