DeepEvalEx.LLM.Adapters.OpenAI (DeepEvalEx v0.1.0)
View SourceOpenAI LLM adapter for DeepEvalEx.
Supports OpenAI's chat completions API with structured outputs.
Configuration
Set your API key in config:
config :deep_eval_ex,
openai_api_key: System.get_env("OPENAI_API_KEY")Or pass it directly:
DeepEvalEx.evaluate(test_case, [metric],
adapter: :openai,
api_key: "sk-..."
)Supported Models
gpt-4o- Latest GPT-4 Omni (recommended)gpt-4o-mini- Smaller, faster GPT-4gpt-4-turbo- GPT-4 Turbogpt-3.5-turbo- GPT-3.5 (faster, cheaper)