Can't log in to AzureOpenAI

I'm looking at Patrick Andrew Hartnett's blog post (Power up your translations) and have inserted my API key and the Endpoint address. However, my dialog does not look quite like Patrick's. Here's his:

Screenshot of Trados Studio's 'Add Model Configuration' dialog with fields filled in: Name 'my-model-gpt4', Provider 'AzureOpenAI', Endpoint URL, API Key obscured, Model 'my-model-gpt4', and Temperature set to 0.75. 'OK' button is active.

And here is mine:

Screenshot of Trados Studio's 'Add Model Configuration' dialog with incomplete fields: Name 'Azure 1', Provider 'AzureOpenAI', Endpoint URL, API Key obscured. Model field is empty and 'OK' button is inactive, indicating an issue.

It is not possible for me to enter a Model name, and as you see, I cannot select OK nor Test Configuration. As far as I know, there is nothing wrong with my API key (it has worked in other contexts).

What could be the problem?



Generated Image Alt-Text
[edited by: RWS Community AI at 8:41 AM (GMT 0) on 15 Nov 2024]
emoji
Parents Reply
  • Hi  

    You'll need to provide the complete endpoint to make calls to the service, including the deployment name and api-version. 

    It should look something like this: https://MyDomainName.openai.azure.com/openai/deployments/MyDeployment/chat/completions?api-version=2023-07-01-preview

    You should be able to recover this from the https://oai.azure.com/portal portal.  The only way I know to recover this quickly is as follows:

    Note: if someone else knows a quicker way, please tell me :-)

    1. Select your deployment from the Deployments page and click on the button Open in Playground
    2. From the playground page, select the button View code
    3. From the Sample Code page you should see the endpoint url at the bottm of the window.

    Example:

    Screenshot of Sample Code section with C# code example for integrating prompts into an application. Endpoint URL is highlighted at the bottom with a warning about securing API keys.

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 1:40 PM (GMT 0) on 29 Feb 2024]
Children