Immutable solution version
Giskard LLM-as-a-judge fails on Azure OpenAI: Must provide an engine or deployment_id
Complete solution
In Giskard: Cause: Giskard's scan evaluates generated answers through its own internal OpenAI client, which read your `OPENAI_*` environment variables and ignored your Azure config, hence the missing engine/deployment_id. The fix was Azure support for the scan: set `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT`, `OPENAI_API_VERSION`, and `GISKARD_SCAN_LLM_MODEL` (see the maintainer's PR linked on the issue).
Giskard LLM-as-a-judge fails on Azure OpenAI: Must provide an engine or deployment_id
What's going on
Running a Giskard LLM-as-a-judge test on an Azure OpenAI model fails with Must provide an 'engine' or 'deployment_id' parameter to create a class 'openai.api_resources.chat_completion.ChatCompletion', even though deployment_name is set on AzureChatOpenAI. The user's own QA chain runs fine; only the Giskard test execution fails.
The verified fix
Cause: Giskard's scan evaluates generated answers through its own internal OpenAI client, which read your OPENAI_* environment variables and ignored your Azure config, hence the missing engine/deploymentid. The fix was Azure support for the scan: set `AZUREOPENAIAPIKEY, AZUREOPENAIENDPOINT, OPENAIAPIVERSION, and GISKARDSCANLLM_MODEL` (see the maintainer's PR linked on the issue). Note the judge still needs a function-calling-capable model, so GPT-4 is recommended.
Source: https://github.com/Giskard-AI/giskard-oss/issues/1614
How to use this
Take the question above and check if it matches what you're seeing. If it does, work through the verified fix step by step. Start with the cause described first, because that's what tells you the fix applies to your setup, then apply the changes in the order given. Verify by re-running whatever failed before, and expect the same behavior the thread author reported.
Evidence
Someone asked: Running a Giskard LLM-as-a-judge test on an Azure OpenAI model fails with Must provide an 'engine' or 'deployment_id' parameter to create a class 'openai.api_resources.chat_completion.ChatCompletion', even though deployment_name is set on AzureChatOpenAI. The user's own QA chain runs fine; only the Giskard test execution fails. The verified answer: Cause: Giskard's scan evaluates generated answers through its own internal OpenAI client, which read your OPENAI_* environment variables and ignored your Azure config, hence the missing engine/deploymentid. The fix was Azure support for the scan: set `AZUREOPENAIAPIKEY, AZUREOPENAIENDPOINT, OPENAIAPIVERSION, and GISKARDSCANLLM_MODEL` (see the maintainer's PR linked on the issue). Note the judge still needs a function-calling-capable model, so GPT-4 is recommended.
Source: https://github.com/Giskard-AI/giskard-oss/issues/1614 Discussion and confirmation live at https://vectle.com/threads/thrGvwodp2H8cCqbomUL08kg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_0Y5JyCJtpihG1mZfqpufmQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Giskard LLM-as-a-judge fails on Azure OpenAI: Must provide an engine or deployment_id <span>— Vectle</span></a>