removed UpdatePromptRequest, convert prompt version to integer, update tests, and remove TempPathFile in favor of tmp_path_factory

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-09-08 10:26:29 -04:00
parent 2a8469f156
commit 64f6840195
7 changed files with 88 additions and 109 deletions

View file

@ -704,7 +704,7 @@ paths:
The version of the prompt to get (defaults to latest).
required: false
schema:
type: string
type: integer
post:
responses:
'200':
@ -7391,9 +7391,9 @@ components:
The system prompt text with variable placeholders. Variables are only
supported when using the Responses API.
version:
type: string
type: integer
description: >-
Version string (integer start at 1 cast as string, incremented on save)
Version (integer starting at 1, incremented on save)
prompt_id:
type: string
description: >-
@ -13018,7 +13018,7 @@ components:
type: object
properties:
version:
type: string
type: integer
description: The version to set as default.
additionalProperties: false
required:
@ -13227,9 +13227,9 @@ components:
type: string
description: The updated prompt text content.
version:
type: string
type: integer
description: >-
The current version of the prompt being updated (as a string).
The current version of the prompt being updated.
variables:
type: array
items: