Skip to content

Azure OpenAI issue #64

Open
Open
@davidd00

Description

I'm trying to use this library with an Azure OpenIA resource.
I'm using the example in the readme: OpenAIAPI api = OpenAIAPI.ForAzure("YourResourceName", "deploymentId", "api-key");, but Url created seems to be wrong.

OpenAIAPI api object initialization:
OpenAIAPI api = OpenAIAPI.ForAzure("opeanai-resource", "deployedEngine", "apikey");
CreatedUrl:
https://opeanai-resource.openai.azure.com/openai/deployments/deployedEngine)/{1}?api-version={0}

It adds a clos parenthesis to the resource engine, so I get this error: The API deployment for the resource does not exist.

I guess the ApiVersion {0} and the completion {1} are added when doing the requests, but are not showed in the Url

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions