mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-10 05:24:39 +00:00
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:
parent
1390660dcf
commit
beb2db487d
6 changed files with 43 additions and 41 deletions
11
docs/_static/llama-stack-spec.yaml
vendored
11
docs/_static/llama-stack-spec.yaml
vendored
|
@ -7403,7 +7403,7 @@ components:
|
|||
items:
|
||||
type: string
|
||||
description: >-
|
||||
Dictionary of prompt variable names and values
|
||||
List of prompt variable names that can be used in the prompt template
|
||||
is_default:
|
||||
type: boolean
|
||||
default: false
|
||||
|
@ -13226,19 +13226,20 @@ components:
|
|||
prompt:
|
||||
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
|
||||
- version
|
||||
title: UpdatePromptRequest
|
||||
VersionInfo:
|
||||
type: object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue