Commit
·
b0bcd0c
1
Parent(s):
02c63da
Add a root endpoint to main.py that returns a "Hello World" message.
Browse files
main.py
CHANGED
|
@@ -123,3 +123,7 @@ async def chat(request: Query):
|
|
| 123 |
response = re.sub(r'<think>.*?</think>', '', response, flags=re.DOTALL)
|
| 124 |
# response = response[4:]
|
| 125 |
return {"response": response}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
response = re.sub(r'<think>.*?</think>', '', response, flags=re.DOTALL)
|
| 124 |
# response = response[4:]
|
| 125 |
return {"response": response}
|
| 126 |
+
|
| 127 |
+
@app.get("/")
|
| 128 |
+
async def root():
|
| 129 |
+
return {"message": "Hello World"}
|