This is (will be) a tool used to generate examples for our Azure OpenAI REST API definitions
AZURE_OPENAI_ENDPOINT="https://..."
AZURE_OPENAI_KEY=...
OPENAI_ENDPOINT="https://api.openai.com/v1"
OPENAI_KEY=...
curl
jq
(optional): if you want to pretty print to console, it's nice.
- Not too concerned with good types. If can get away with a single request model
Prompts
for every request, that is good enough - We dump JSON files ready to be used in the REST API repo
- Maaaaybe at somepoint we can pass the response model structure as a
yml
and craft it to look nice