prompty icon indicating copy to clipboard operation
prompty copied to clipboard

unclear how to configure the settings.json - if you're new to these API's

Open chgray opened this issue 1 year ago • 2 comments

where do these api keys and base_urls come from? I spent a few hours guessing, ....but I'm guessing

chgray avatar Feb 16 '25 01:02 chgray

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.

BethanyJep avatar Mar 04 '25 11:03 BethanyJep

for OpenAI, you just need your api_key & organization. You can add as follows:

{ "name": "default", "type": "openai", "api_key": "", "organization": "", },

You can get this by going to OpenAI, > API platform > Settings > you will get the details you need.

BethanyJep avatar Mar 04 '25 11:03 BethanyJep