Manage prompts centrally, fetch versions, and use variables for dynamic prompts
{{variableName}}
placeholders that are dynamically replaced at runtime.List of Prompts
Create or Edit a Prompt
{{variableName}}
to represent dynamic data that will be substituted when the prompt is compiled.View Prompt Details
Retrieve the Prompt
Create an API Key
Get prompt using the SDK
Parameter | Description |
---|---|
url | Sets the OpenLIT URL. Defaults to the OPENLIT_URL environment variable. |
api_key | Sets the OpenLIT API Key. Can also be provided via the OPENLIT_API_KEY environment variable. |
name | Sets the name to fetch a unique prompt. Use this or prompt_id . |
prompt_id | Sets the ID to fetch a unique prompt. Use this or name . Optional |
version | Set to True to get the prompt with variable substitution.. Optional |
shouldCompile | Boolean value that compiles the prompt using the provided variables. Optional |
variables | Sets the variables for prompt compilation. Optional |
meta_properties | Sets the meta-properties for storing in the prompt’s access history metadata. Optional |