Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 1.87 KB

File metadata and controls

85 lines (60 loc) · 1.87 KB

📚 Documentation   •   🖥️ Application   •   🏠 Home

Getting started

OPENAI_API_KEY=<your-openai-api-key>
AUTOBLOCKS_INGESTION_KEY=<your-autoblocks-ingestion-key>

Create a prompt

Go to https://app.autoblocks.ai/prompts and click on Create Prompt.

example-prompt

Create a prompt like this and deploy it.

Set your API key

Then, get your API key from here and set it as an environment variable:

export AUTOBLOCKS_API_KEY=...

Create your .autoblocks.yml file

This file instructs the CLI which prompts and which of their versions to autogenerate code for. One has already been created for you in ./.autoblocks.yml.

Install dependencies

poetry install

Autogenerate classes

This CLI will autogenerate classes for you to use to interact with the prompts you've created in the UI.

poetry run prompts generate

Run the script

Without Prompt SDK:

poetry run start

With Prompt SDK:

poetry run start-with-prompt-sdk