Updates attributes of a given prompt template.
Updates attributes of a given prompt template.
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Id of a prompt template to update
Request body
A name of the prompt template.
A description of the prompt template.
A language code.
A system prompt.
A text that is prepended before the contextual document chunks.
A text that is appended to the beginning of the user's message.
An LLM prompt extension.
A prompt that goes before each large piece of text to summarize.
A prompt that goes after each large piece of text to summarize.
A system prompt for self-reflection.
A template for self-reflection, must contain two occurrences of %s for full previous prompt (including system prompt, document related context and prompts if applicable, and user prompts) and answer
A prompt to create a description of the collection.
A pre_prompt_summary for summary of a freshly imported document (if enabled).
A prompt_summary for summary of a freshly imported document (if enabled).`
A prompt to create sample questions for a freshly imported document (if enabled).
Default sample questions in case there are no auto-generated sample questions.
A prompt for each image batch for vision models.
A prompt for each image batch for vision models.
Response
Successful operation
A name of the prompt template.
A description of the prompt template.
A language code.
A system prompt.
A text that is prepended before the contextual document chunks.
A text that is appended to the beginning of the user's message.
An LLM prompt extension.
A prompt that goes before each large piece of text to summarize.
A prompt that goes after each large piece of text to summarize.
A system prompt for self-reflection.
A template for self-reflection, must contain two occurrences of %s for full previous prompt (including system prompt, document related context and prompts if applicable, and user prompts) and answer
A prompt to create a description of the collection.
A pre_prompt_summary for summary of a freshly imported document (if enabled).
A prompt_summary for summary of a freshly imported document (if enabled).`
A prompt to create sample questions for a freshly imported document (if enabled).
Default sample questions in case there are no auto-generated sample questions.
A prompt for each image batch for vision models.
A prompt for each image batch for vision models.
A unique identifier of the prompt template.
A flag identifying if the prompt template is default or not.
The number of users who have access to the prompt template.
The number of groups who have access to the prompt template.
Name of the user owning the prompt template.
The unique identifier of the user owning the prompt template.
The moment when the prompt template was created.
The Last time when the prompt template was modified.
Whether the prompt template is public or private (only applies to custom templates).
A flag identifying if a default prompt template is visible to system users.
A flag identifying if a default prompt template is the system default.
Changes
No recorded changes to this operation across all 1 revision of this API.