prompty
prompty copied to clipboard
unclear how to configure the settings.json - if you're new to these API's
where do these api keys and base_urls come from? I spent a few hours guessing, ....but I'm guessing
This are either your Azure OpenAI or OpenAI details. For Azure OpenAI, you can add as follows:
{
"name": "default",
"type": "azure_openai",
"api_version": "<your api version, check endpoint url>",
"azure_endpoint": "<your api endpoint>",
"azure_deployment": "<your api deployment name e.g. gpt-4o>",
"api_key": "<api key>"
},
If you are using Azure AI Foundry to deploy your models, you can see this at the overview page or management center.
for OpenAI, you just need your api_key & organization. You can add as follows:
{
"name": "default",
"type": "openai",
"api_key": "
You can get this by going to OpenAI, > API platform > Settings > you will get the details you need.