diff --git a/pages/developers/intelligent-contracts/tools/genlayer-studio/providers.mdx b/pages/developers/intelligent-contracts/tools/genlayer-studio/providers.mdx index 908c6520..3d2133b7 100644 --- a/pages/developers/intelligent-contracts/tools/genlayer-studio/providers.mdx +++ b/pages/developers/intelligent-contracts/tools/genlayer-studio/providers.mdx @@ -1,4 +1,5 @@ import Image from 'next/image' +import { Callout } from 'nextra-theme-docs' # Inference Providers @@ -26,6 +27,26 @@ You can add a new provider by clicking the **New Config** button at the top of t +To configure your provider: + +1. In the top-right corner, use the toggle switch to select between "Standard" or "Custom" provider types. +2. Fill in the required provider details in the form: + - Provider: Enter a descriptive name for your provider + - Model: Specify a valid model name supported by your provider + - Plugin: Select the plugin that implements your custom provider's functionality + - Config: Set up your API credentials +3. Important: For the API key configuration: + - Add your API key to your `.env` file + - In the `api_key_env_var` field, reference the environment variable name you created +4. Click "Create" to add your provider. It will appear in your providers list marked as custom. + + +If you see a yellow warning triangle next to your provider, it indicates a configuration issue that needs your attention. + +The example below shows a custom configuration for Comput3: + +Example custom provider configuration for Comput3 + ## Updating an Existing Provider To modify your validator settings, click on any existing validator and modify the fields based on your needs. diff --git a/public/custom-provider-preset.png b/public/custom-provider-preset.png new file mode 100644 index 00000000..b362577c Binary files /dev/null and b/public/custom-provider-preset.png differ