Run a Prompt on Athina Playground
To run a prompt:- Open https://app.athina.ai.ai/prompt and select the prompt you want to run.
- Enter the input variables in the editor.
- Select the model you want to run the prompt on, and configure any parameters.
- Click
Runto generate the output.
Run a Prompt Programmatically
You can run a prompt via the API by calling the Run Prompt endpoint with theprompt_slug and input variables.
- python
- curl
variables: Input variables for the prompt.version(optional): The version of the prompt to run. If not specified, thedefaultversion will be used.model(optional): The model to run the prompt on. If not specified, we will use the model provided in your commit.parameters(optional): Additional parameters for the model liketemperature,max_tokens, etc. If not specified, the default parameters will be used.
Prompts run via the API will be displayed in the Observe page: https://app.athina.ai/observe
Get Prompt via API & Run it Yourself
Alternatively, you can store a prompt in Athina and run it yourself. This example demonstrates the same using OpenAI’s API in Python.- Python
- API