DIAL-to-DIAL Adapter
Introduction
When developing DIAL applications or working with a local deployment of DIAL, this DIAL-to-DIAL adapter simplifies the process by eliminating the need to manually request, deploy, or configure LLM models. It facilitates communication between two instances of DIAL Core, allowing you to access and utilize any model available in a remote DIAL Core within the scope of your API key.
Refer to DIAL Adapter repository to learn how to configure and run this adapter.
Refer to DIAL Core to view all the configuration parameters.
Configuration
In this section, you can learn how to configure a local DIAL Core Adapter.
Prerequisites
- Ensure that you have a URL for a remote DIAL Core where models are already configured. Example: core.your-company.com
- Make sure you possess an API key for the remote DIAL Core. Example: "YourAPIKeyForRemoteCore"
Configuration Steps
In the DIAL Adapter repository you can find additional information and source files.
-
Access to the remote DIAL Core server is determined by the environment variables
$REMOTE_DIAL_URL
and$REMOTE_DIAL_API_KEY
. -
Run the following command to generate a local version of the remote DIAL Core configuration file
core/config.json
.REMOTE_DIAL_URL="url" REMOTE_DIAL_API_KEY="key" ./generate_config_from_listing.sh
-
Modify the generated
core/config.json
as you see fit. For example, you might want to add models and applications hosted by the remote DIAL server, or configure locally-hosted applications. -
Run your local DIAL.
docker compose up --abort-on-container-exit