Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
methodidacte opened this issue Oct 24, 2023 · 1 comment

Comments

@methodidacte
Copy link

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
Copy link

migibbs commented Nov 5, 2023

see #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants