Adapters
OpenAI Adapter
From docker-compose-base.yml:
adapter-openai:
image: epam/ai-dial-adapter-openai:0.43.2
platform: linux/amd64
environment:
DIAL_URL: "http://core:8080"
WEB_CONCURRENCY: "3"
DALLE3_DEPLOYMENTS: "dall-e-3"
Note
This sample runs the standalone DIAL OpenAI Adapter, which will be deprecated. For your own deployments, use DIAL Model Provider, which serves the same adapter under
/compat/openaiand reads the same variables. To move a configuration, see Migrate from the standalone adapters.
Environment variables
| Variable | Description |
|---|---|
DIAL_URL | DIAL Core internal URL. Used for file storage API calls. |
WEB_CONCURRENCY | Number of Uvicorn worker processes. |
DALLE3_DEPLOYMENTS | Comma-separated Azure OpenAI deployment names for DALL-E 3. |
The 2.x stack no longer sets GPT4O_DEPLOYMENTS, GPT4O_MINI_DEPLOYMENTS, or DIAL_USE_FILE_STORAGE. Per-model deployment names are declared in config.json instead; DALLE3_DEPLOYMENTS remains because image models still need the adapter to know which deployments return images. See Adapter configuration for variables the adapter still accepts but this stack does not set.
See Adapter configuration for the full adapter environment variable reference.
Further reading
- Core, Redis & Themes — Core service configuration
- DIAL Core configuration: Models — the fields that define a model deployment in Core