https://promptfoo.dev/ logo
Issue with promptfoo: API URL is being incorrectly...
# ❓|questions
n
Hi everyone, I'm encountering an issue with promptfoo. When I try to run the evaluation, I receive the following error message: API call error: Error: Request failed after 4 retries: request to https://https//testxxx.openai.azure.com//openai/deployments/gpt-4o-mini/chat/completions?api-version=2023-12-01-preview failed, reason: getaddrinfo ENOTFOUND https I’ve checked my environment file and the API endpoint configuration, and they seem correct. However, it appears that promptfoo is automatically appending https to the URL, which might be causing the issue. Has anyone experienced a similar problem or have suggestions on how to resolve this? Any help would be greatly appreciated! Thank you!
m
@neko0461 thank you for reporting this issue. I've opened https://github.com/promptfoo/promptfoo/pull/1672 to fix this. In the meantime, you can work around it by removing any trailing slash or duplicate "https://" from your Azure OpenAI API endpoint URL. I'll get this fix released in the next version tomorrow. Let us know if you have any questions!