preset-io / promptimize

Promptimize is a prompt engineering evaluation and testing toolkit.
Apache License 2.0
428 stars 34 forks source link

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

Open methodidacte opened 11 months ago

methodidacte commented 11 months ago

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 ?

migibbs commented 11 months ago

see https://github.com/preset-io/promptimize/pull/20