Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,6 +97,12 @@ def build_prompt(raw_messages: List[dict]) -> str:
|
|
| 97 |
return prompt
|
| 98 |
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
@app.post("/v1/chat/completions")
|
| 101 |
def chat(request: ChatRequest):
|
| 102 |
try:
|
|
|
|
| 97 |
return prompt
|
| 98 |
|
| 99 |
|
| 100 |
+
@app.post("/debug-echo")
|
| 101 |
+
async def debug_echo(request: Request):
|
| 102 |
+
body = await request.body()
|
| 103 |
+
print("DEBUG ECHO BODY:", body)
|
| 104 |
+
return {"ok": True}
|
| 105 |
+
|
| 106 |
@app.post("/v1/chat/completions")
|
| 107 |
def chat(request: ChatRequest):
|
| 108 |
try:
|