Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,8 @@ async def generate_streaming_response(messages: List[Dict], use_search: bool, te
|
|
| 295 |
|
| 296 |
# --- Streaming Chat Endpoint ---
|
| 297 |
@app.post("/chat/stream")
|
| 298 |
-
async def chat_stream_endpoint(request: Request
|
|
|
|
| 299 |
if not client:
|
| 300 |
raise HTTPException(status_code=500, detail="LLM client not configured")
|
| 301 |
|
|
|
|
| 295 |
|
| 296 |
# --- Streaming Chat Endpoint ---
|
| 297 |
@app.post("/chat/stream")
|
| 298 |
+
async def chat_stream_endpoint(request: Request#, _: None = Depends(verify_origin)
|
| 299 |
+
):
|
| 300 |
if not client:
|
| 301 |
raise HTTPException(status_code=500, detail="LLM client not configured")
|
| 302 |
|