Skip to content

Using AZURE OPENAI model does not work #14

Open
@NasreddineDa

Description

@NasreddineDa

Can you try to do it with azure openai following your instructions and confirm it works because it does not in my side.
I think you copied the OpenAI endpoint but for Azure it's different.

Azure SDK code:
const apiKey = "";
const apiVersion = "2024-04-01-preview";
const endpoint = "https://xxx.openai.azure.com/";
const modelName = "gpt-4o-mini";
const deployment = "gpt-4o-mini";
const options = { endpoint, apiKey, deployment, apiVersion }

const client = new AzureOpenAI(options);

I think the apiVersion is missing.

Could you please confirm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions