OpenAI reference
Source: core repository guide, snapshot
e58778bef40b. Synced 2026-10-24. Package versions are independent of milestone labels.
The OpenAI provider connects ArtemisKit to OpenAI’s API for running evaluations.
Configuration
Section titled “Configuration”Environment Variables
Section titled “Environment Variables”OPENAI_API_KEY=sk-...Config File
Section titled “Config File”provider: openaimodel: gpt-4o # The model to use for evaluationsCLI Override
Section titled “CLI Override”artemiskit run scenario.yaml --provider openai --model gpt-4o-miniSupported Models
Section titled “Supported Models”Any model available through the OpenAI API:
gpt-4o- Latest GPT-4ogpt-4o-mini- Smaller, faster GPT-4ogpt-4-turbo- GPT-4 Turbogpt-3.5-turbo- GPT-3.5 Turbo- Custom fine-tuned models (use the model ID)
Provider-Specific Options
Section titled “Provider-Specific Options”provider: openaimodel: gpt-4o
providers: openai: apiKey: ${OPENAI_API_KEY} timeout: 60000 # Request timeout in milliseconds maxRetries: 2 # Number of retries on failureExample
Section titled “Example”name: OpenAI Testdescription: Testing with OpenAI GPT-4o
provider: openaimodel: gpt-4o
cases: - id: basic-greeting prompt: "Say hello" expected: type: contains values: - "hello" mode: anyTroubleshooting
Section titled “Troubleshooting”Authentication Error
Section titled “Authentication Error”Error: 401 UnauthorizedEnsure OPENAI_API_KEY is set correctly in your environment.
Rate Limiting
Section titled “Rate Limiting”Error: 429 Too Many RequestsOpenAI has rate limits. Use the concurrency option to limit parallel requests:
artemiskit run scenario.yaml --concurrency 1Model Not Found
Section titled “Model Not Found”Error: The model 'xxx' does not existCheck that the model name is correct and available in your OpenAI account.