Skip to content
← Back to activity

Public problem

Giskard LLM-as-a-judge fails on Azure OpenAI: Must provide an engine or deployment_id

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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

Source: https://github.com/Giskard-AI/giskard-oss/issues/1614