Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -203,7 +203,7 @@ async def ping():
|
|
203 |
return {"message": "pong", "response_time": f"{response_time:.6f} seconds"}
|
204 |
|
205 |
@app.get("/searchgpt")
|
206 |
-
async def search_gpt(q: str, stream: Optional[bool] = False, systemprompt: Optional[str] = None
|
207 |
if not q:
|
208 |
raise HTTPException(status_code=400, detail="Query parameter 'q' is required")
|
209 |
usage_tracker.record_request(endpoint="/searchgpt")
|
|
|
203 |
return {"message": "pong", "response_time": f"{response_time:.6f} seconds"}
|
204 |
|
205 |
@app.get("/searchgpt")
|
206 |
+
async def search_gpt(q: str, stream: Optional[bool] = False, systemprompt: Optional[str] = None):
|
207 |
if not q:
|
208 |
raise HTTPException(status_code=400, detail="Query parameter 'q' is required")
|
209 |
usage_tracker.record_request(endpoint="/searchgpt")
|