We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d97fc57 commit dcf6596Copy full SHA for dcf6596
1 file changed
src/models/responses.py
@@ -313,7 +313,20 @@ class LivenessResponse(BaseModel):
313
class NotAvailableResponse(BaseModel):
314
"""Model representing error response for readiness endpoint."""
315
316
- detail: dict[str, str]
+ detail: dict[str, str] = Field(
317
+ ...,
318
+ description="Detailed information about readiness state",
319
+ examples=[
320
+ {
321
+ "response": "Service is not ready",
322
+ "cause": "Index is not ready",
323
+ },
324
325
326
+ "cause": "LLM is not ready",
327
328
+ ],
329
+ )
330
331
# provides examples for /docs endpoint
332
model_config = {
0 commit comments