refactor: Update queue_status endpoint response key name

The key name in the response of the queue_status endpoint has been updated from "prnding" to "pending" to fix a typo. This change ensures consistency and improves the readability of the returned data.
This commit is contained in:
Simon Larsen 2024-06-22 12:43:04 +00:00
parent 00b35c4d9a
commit 1a02f5b73e

View File

@ -82,7 +82,7 @@ async def create_item(prompt: Prompt):
@app.get("/queue-status/")
async def queue_status():
return {"prnding": items_pending, "processed": items_processed, "queue": queue}
return {"pending": items_pending, "processed": items_processed, "queue": queue}
@app.post("/prompt-result/")
async def prompt_status(prompt_status: PromptResult):