From 6588ed2767cba1b87a99c4bb326acd5aa75a1fcb Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 16 Nov 2025 13:05:34 +0200 Subject: [PATCH] Remove unused models. --- gliner_inference_server/models.py | 33 ------------------------------- 1 file changed, 33 deletions(-) diff --git a/gliner_inference_server/models.py b/gliner_inference_server/models.py index 9bfe56b..9958933 100644 --- a/gliner_inference_server/models.py +++ b/gliner_inference_server/models.py @@ -84,36 +84,3 @@ class SummarizationRequest(BaseModel): raise ValueError(f"text exceeds maximum length of {max_length}") return v - -# ==================== Response Models ==================== -class EntityOutput(BaseModel): - entity: str - span: str - start: int - end: int - score: float - - -class RelationOutput(BaseModel): - source: EntityOutput - relation: str - target: EntityOutput - score: float - - -class SummaryOutput(BaseModel): - text: str - start: int - end: int - score: float - -# ==================== Error Response Model ==================== -class ErrorDetail(BaseModel): - code: str - message: str - details: Dict[str, Any] = Field(default_factory=dict) - - -class ErrorResponse(BaseModel): - error: ErrorDetail -