From eb67f20438b286ca78a69b5e8ad0c0a04436d55f Mon Sep 17 00:00:00 2001 From: Barna Szocs Date: Tue, 20 Aug 2024 10:24:04 +0300 Subject: [PATCH] Fix type of duration fields The duration fields return by ollama API are large, nanosecond based integers --- specs/openapi-3.1.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/openapi-3.1.yaml b/specs/openapi-3.1.yaml index dba03d79..b26fcfe6 100644 --- a/specs/openapi-3.1.yaml +++ b/specs/openapi-3.1.yaml @@ -524,21 +524,21 @@ components: type: number description: Total duration of the request load_duration: - type: string + type: number description: Load duration of the request prompt_eval_count: type: integer description: Count of prompt evaluations prompt_eval_duration: - type: string + type: number description: Duration of prompt evaluations eval_count: type: integer description: Count of evaluations eval_duration: - type: string + type: number description: Duration of evaluations - + CreateRequest: type: object description: Request to create a model