The main component of AI DIAL, which provides unified API to different chat completion and embedding models, assistants, and applications
The main component of AI DIAL, which provides unified API to different chat completion and embedding models, assistants, and applications
DIAL Core
[!NOTE] HTTP Proxy provides unified API to different chat completion and embedding models and applications. Written in Java 21 and built on top of Eclipse Vert.x.
DIAL Core exposes an OpenAPI specification describing all available REST endpoints, request and response models, and common error responses.
The specification is generated automatically from the source code using the openapi-generator module. Do not edit the generated OpenAPI files manually, as any changes will be overwritten during the next generation.
The latest OpenAPI 3.0 specification is available in docs/open_api_core.yaml: https://github.com/epam/ai-dial-core/blob/development/docs/open_api_core.yaml
Endpoints that are still under development are marked with the vendor extension:
x-preview: trueThese endpoints are considered experimental and may change or be removed in future releases without backward compatibility guarantees.
DIAL Core has a dependency on GitHub packages of JClouds. Github doesn't provide anonymous access to packages.
That requires to pass credentials GitHub for access to published JClouds packages. See the code snippet below:
repositories {
maven {
url = uri("https://maven.pkg.github.com/epam/jclouds")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_PASSWORD")
}
}
mavenCentral()
}[!IMPORTANT] You should set env variables
GPR_USERNAMEandGPR_PASSWORDto valid values, whereGPR_USERNAME- GitHub username andGPR_PASSWORD- GitHub personal access token.
[!IMPORTANT] The access token requires the permission
read:packages.See more details here to generate personal access token in GitHub.
Build the project with Gradle and Java 21:
./gradlew buildRun the project with Gradle:
./gradlew :server:runOr run com.epam.aidial.core.server.AiDial class from your favorite IDE.
You have the option to deploy the DIAL Core on the Kubernetes cluster by utilizing an umbrella dial Helm chart, which also deploys other DIAL components. Alternatively, you can use dial-core Helm chart to deploy just Core.
[!NOTE] Refer to Examples for guidelines.
In any case, in your Helm values file, it is necessary to provide application's configurations described in the Configuration section.
[!NOTE] Static settings are used on startup and cannot be changed while application is running. Refer to example to view the example configuration file.
Priority order:
| Setting | Default | Required | Description |
|---|---|---|---|
| config.files | aidial.config.json | No | List of paths to dynamic settings. Refer to example of the file with dynamic settings. |
| config.reload | 60000 | No | Config reload interval in milliseconds. |
| vertx.* | - | No | Vertx settings. Refer to vertx.io to learn more. |
| server.* | - | No | Vertx HTTP server settings for incoming requests. Refer to HTTP server options to learn more. |
| client.* | - | No | Vertx HTTP client settings for outbound requests. Refer to HTTP client options to learn more. |
| webSocketClient.* | - | No | Vertx web socket client settings for outbound requests. Refer to WebSocket client options to learn more. |
| invitations.ttlInSeconds | 259200 | No | Invitation time to live in seconds. |
| perRequestApiKey.ttl | 1800 | No | The TTL in seconds of per request API key |
| asyncTaskExecutor.useVirtualThreads | true | No | The flag determines if virtual threads are used to run blocking tasks or platform threads. |
| config.jsonMergeStrategy.overwriteArrays | false | No | Specifies a merging strategy for JSON arrays. If it's set to true, arrays will be overwritten. Otherwise, they will be concatenated. |
| apiKeyValidation.proxyCount | 0 | No | The count of trusted proxies between the client and DIAL Core server. See selecting an IP address in HTTP header X-Forwarded-For for more details. The default value means there are no proxies. |
| printAuthorizationHeader | false | No | If true, logs the raw Authorization header value at DEBUG level for each request. Intended for debugging JWT/identity provider setup only. Note: the header may contain sensitive tokens; do not enable in production. |
| mcpHttpClient.connectTimeout | 10000 | No | Connect timeout in milliseconds for the shared java.net.http.HttpClient used when the server calls out to MCP servers (toolset tool listing/execution, API key sign-in validation). |
| analytics.collectClaims | false | No | If true, adds a claims object (user_id, roles, user_display_name) to each analytics log entry. Note: these claims may contain personal data (e.g. user id or display name); enable only where logging such data is acceptable. |
| analytics.claimsAllowlist | (empty) | No | JSON array of claims to add to the claims object of each analytics log entry, taken verbatim from the identity provider's token or user info response. Each entry is a dot-separated path (e.g. email, resource_access.roles) and is emitted under that exact path as its key; missing claims are omitted. ["*"] collects every top-level claim. See Collecting claims below. Note: claim values are written unhashed, so this puts plain-text personal data in logs. |
| analytics.collectHeaders | false | No | If true, adds a headers object with the request headers to each analytics log entry, filtered by analytics.headersAllowlist / analytics.headersBlacklist. Note: enabling this may write sensitive data to logs; curate the lists for your setup. |
| analytics.headersBlacklist | ["authorization", "api-key", "cookie", "proxy-authorization"] | No | JSON array of case-insensitive regex patterns (full-match); request headers whose name matches any pattern are excluded when analytics.collectHeaders is enabled. Literal names (e.g. authorization) match themselves; use patterns like x-stainless-.* to drop a whole family of headers. |
| analytics.headersAllowlist | (disabled) | No | Optional JSON array of case-insensitive regex patterns (full-match |
No open issues yet, or sync has not completed.