OpenAI
OpenAI Provider
Section titled “OpenAI Provider”Use ArtemisKit with OpenAI’s GPT models.
1. Get API Key
Section titled “1. Get API Key”Get your API key from the OpenAI Dashboard.
2. Set Environment Variable
Section titled “2. Set Environment Variable”export OPENAI_API_KEY="sk-..."3. Configure Scenario
Section titled “3. Configure Scenario”name: my-testprovider: openaimodel: gpt-5
cases: - id: example prompt: "Hello" expected: type: contains values: ["hello"] mode: anyAvailable Models
Section titled “Available Models”| Model | Description |
|---|---|
gpt-5 | Latest flagship model |
gpt-4o | Multimodal, versatile |
gpt-4o-mini | Fast and cost-effective |
gpt-4.1 | Coding specialist, 1M context |
o3 | Advanced reasoning model |
o4-mini | Fast reasoning model |
Config File
Section titled “Config File”Configure OpenAI in your artemis.config.yaml:
provider: openaimodel: gpt-5
providers: openai: apiKey: ${OPENAI_API_KEY} organization: ${OPENAI_ORG_ID} # Optional timeout: 60000 maxRetries: 2Scenario-Level Options
Section titled “Scenario-Level Options”Override settings in your scenario file:
name: my-testprovider: openaimodel: gpt-5temperature: 0seed: 42maxTokens: 1000
cases: - id: example prompt: "Hello" expected: type: contains values: ["hello"] mode: anyOrganization ID
Section titled “Organization ID”If you belong to multiple organizations:
export OPENAI_ORG_ID="org-..."Or in your config:
providers: openai: apiKey: ${OPENAI_API_KEY} organization: ${OPENAI_ORG_ID}