Skip to content

Must provide an 'engine' or 'deployment_id' parameter to create a <class 'openai.api_resources.completion.Completion'> #22

@methodidacte

Description

@methodidacte

Hello, I try to run promptimize with an Azure OpenAI service. I define 4 env variables :
$env:OPENAI_API_TYPE = 'azure'
$env:OPENAI_API_BASE = 'https://.openai.azure.com/'
$env:OPENAI_API_VERSION = '2023-07-01-preview'
$env:OPENAI_API_KEY = ''

but when I launched this command promptimize run examples/ --output ./report.yaml, I reach an issue
Must provide an 'engine' or 'deployment_id' parameter to create a <class 'openai.api_resources.completion.Completion'>

I tried to add the --engine parameter but without success (text-davinci-003, gpt-35-turbo-16k...). How can we adapt promtimize to Azure ?

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