Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

ai-dial-core

> AI 编程
Open source

The main component of AI DIAL, which provides unified API to different chat completion and embedding models, assistants, and applications

657 stars0 likes1 views
WebsiteGitHub

About

The main component of AI DIAL, which provides unified API to different chat completion and embedding models, assistants, and applications

DIAL Core

  • Overview
  • OpenAPI Specification
  • Build
  • Run
  • Helm Deployment
  • Configuration
    • Static settings
    • Storage requirements
    • Dynamic settings
  • Claude Code commands
  • License

Overview

[!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.

Read more about the DIAL Core


OpenAPI Specification

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

Preview endpoints

Endpoints that are still under development are marked with the vendor extension:

yaml
x-preview: true

These endpoints are considered experimental and may change or be removed in future releases without backward compatibility guarantees.

Build

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:

groovy
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_USERNAME and GPR_PASSWORD to valid values, where GPR_USERNAME - GitHub username and GPR_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 build

Run ▶️

Run the project with Gradle:

./gradlew :server:run

Or run com.epam.aidial.core.server.AiDial class from your favorite IDE.


Helm Deployment

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.


Configuration ⚙️

  • Static settings
  • Dynamic settings

Static settings

[!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:

  1. Environment variables with extra "aidial." prefix. E.g. "aidial.server.port", "aidial.config.files".
  2. File specified in "AIDIAL_SETTINGS" environment variable.
  3. Default resource file: src/main/resources/aidial.settings.json.
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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaai-dialllm

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.