fixed update_prompt to properly handle latest and default version, made version a required parameter, and removed unused CreatePromptRequest

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-09-07 22:03:01 -04:00
parent 1390660dcf
commit beb2db487d
6 changed files with 43 additions and 41 deletions

View file

@ -10018,7 +10018,7 @@
"items": {
"type": "string"
},
"description": "Dictionary of prompt variable names and values"
"description": "List of prompt variable names that can be used in the prompt template"
},
"is_default": {
"type": "boolean",
@ -17824,21 +17824,22 @@
"type": "string",
"description": "The updated prompt text content."
},
"version": {
"type": "string",
"description": "The current version of the prompt being updated (as a string)."
},
"variables": {
"type": "array",
"items": {
"type": "string"
},
"description": "Updated list of variable names that can be used in the prompt template."
},
"version": {
"type": "string",
"description": "The current version of the prompt being updated (as a string)."
}
},
"additionalProperties": false,
"required": [
"prompt"
"prompt",
"version"
],
"title": "UpdatePromptRequest"
},