easyiec.evaluators.OpenAIClient#

class easyiec.evaluators.OpenAIClient(model='gpt-4o-mini', *, api_key=None, base_url='https://api.openai.com/v1', json_mode=True, temperature=0.0, extra_headers=None, **kw)[source]#

Bases: LLMClient

OpenAI Chat Completions (and compatible endpoints through base_url).

Images are sent as data: URLs; response_format={"type": "json_object"} is requested when a schema is given (json_mode=False disables it for servers that do not support it).