Skip to content

Commit

Permalink
Add version endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmykOliva committed Dec 4, 2023
1 parent 99dc30f commit ed2cbbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ async def test_stream():
async def test_stream_post():
return StreamingResponse(test_stream(),media_type="text/event-stream")

@app.post("/version")
def version(request: Request):
print(request.headers)
return {"version":"1.0"}

@app.get("/chat_history/{unique_id}")
def get_chat_history(unique_id: str):
chat_state = get_chat_data(unique_id)
Expand Down

0 comments on commit ed2cbbf

Please sign in to comment.