Skip to main content

Isolated testing

You don’t have to migrate everything at once. Run Radium in parallel with your current provider to compare output quality, latency and cost before changing production code.

Goal

Send 5-10% of your traffic to Radium while the rest stays on your existing provider. No code changes to existing services required.

Prerequisites

  • A Radium API key from the dashboard
  • Your current provider still working as-is

Strategy 1: Environment-variable switching

The quickest way to test is route by changing which key your code reads.
In your code, read the base URL from env:

Strategy 2: IDE profiles (Cursor, Cline, Continue)

Most coding agents support multiple provider profiles. Create a “Radium test” profile so you can switch without overwriting your main setup.

Cursor

  1. Open Settings → Models
  2. Add a custom OpenAI-compatible provider:
    • Base URL: https://api.radium.cloud/v1
    • API Key: your Radium key
    • Model: hal-1.0
  3. Save as profile “Radium” and switch between OpenAI and Radium via the model dropdown

Cline

Edit .clinerules or Cline settings to add Radium as a secondary provider without removing your primary:

Continue

Add Radium to your Continue config.json alongside existing providers:

Strategy 3: Wrapper with fallback

For production services, wrap the client call so it falls back to your existing provider if Radium fails.

Strategy 4: Feature-flag routing

Use a feature flag (e.g., LaunchDarkly, Unleash, or a simple env var) to control the split:

Validation checklist

Run through this before expanding the test:
  • Responses complete successfully for your top 5 prompt types
  • Tool calls return the same schema as your existing provider
  • Streaming tokens arrive at acceptable speed
  • Cost per request is visible in the Radium dashboard
  • Error rate is below 1% over 100 requests

Rollback

If anything goes wrong, unset the env var or switch the IDE profile back. No code reverts needed.