prompts

Create Prompt Template With Version

Changed on

For a given project, create a prompt template.

We first create a prompt template version, and then create a prompt template that points to that version as the selected version.

Parameters

project_id : UUID4 Project ID. create_request : CreatePromptTemplateWithVersionRequestBody, optional Request body, by default Body( ..., examples= [BasePromptTemplateVersion.test_data() | BasePromptTemplate.test_data()], )

Returns

CreatePromptTemplateResponse Details about the created prompt template.

post/projects/{project_id}/templates

Request

  • Base URL
    https://api.galileo.ai
  • URL
    https://api.galileo.ai/projects/{project_id}/templates
  • Auth
    • API key in header Splunk-AO-API-Key
    • or API key in header Galileo-API-Key
    • or OAuth 2
      Password
      Token URL: https://api.galileo.ai/login
    • or HTTP basic

Path parameters

project_idstring uuid4 required

Request body

rawboolean
versioninteger nullable
output_typestring nullable
hiddenboolean

Response

Successful Response

idstring uuid4 required
templatestring required
selected_version_idstring uuid4 required
all_available_versionsinteger[] required
total_versionsinteger required
max_versioninteger required
created_atstring date-time required
updated_atstring date-time required

Changes

    • breaking

      removed the enum value vegas_gateway of the request property ///

    • warning

      added the new read_all_logs enum value to the /// response property for the response status

    • warning

      added the new read_filtered_logs enum value to the /// response property for the response status

    • info

      added the new optional request property ///