Skip to content

Commit

Permalink
default endpoint message
Browse files Browse the repository at this point in the history
  • Loading branch information
nlueem committed Aug 3, 2024
1 parent 2caf535 commit b44812a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def is_system_prompt(msg):
"""Check if a message is a system prompt."""
return msg["role"] == "system"

@app.get("/")
def root():
"Started endpoint message"
return {"message": "Up and running"}

@app.post("/chat")
def chat(chat_request: ChatRequest):
"""The main endpoint for interacting with the model.
Expand Down

0 comments on commit b44812a

Please sign in to comment.