Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Or add the following line to your Cargo.toml:

## How to Use

Here's a simple example with the Weighted Round Robin (WRR) routing mode. Before running the code, make sure to set your provider API key in the environment variable by running `export <PROVIDER>_API_KEY="your_openai_api_key"`.
Here's a simple example with the Weighted Round Robin (WRR) routing mode. Before running the code, make sure to set your provider API key in the environment variable by running `export <PROVIDER>_API_KEY="your_provider_api_key"`.
Here we use OpenAI as an example.


Expand All @@ -48,18 +48,18 @@ use tokio::runtime::Runtime;

fn main() {
let config = client::Config::builder()
.provider("deepinfra")
.provider("openai")
.routing_mode(client::RouterMode::WRR)
.model(
client::ModelConfig::builder()
.name("deepseek-ai/DeepSeek-V3.2")
.name("gpt-3.5-turbo")
.weight(2)
.build()
.unwrap(),
)
.model(
client::ModelConfig::builder()
.name("nvidia/Nemotron-3-Nano-30B-A3B")
.name("gpt-4")
.weight(1)
.build()
.unwrap(),
Expand Down
Loading