Skip to content

Commit ca765bd

Browse files
committed
Fix Readme.md
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent eb53636 commit ca765bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Or add the following line to your Cargo.toml:
3535

3636
## How to Use
3737

38-
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"`.
38+
Here's a simple example with the Weighted Round Robin (WRR) router 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"`.
3939
Here we use OpenAI as an example.
4040

4141

@@ -49,7 +49,7 @@ use tokio::runtime::Runtime;
4949
fn main() {
5050
let config = client::Config::builder()
5151
.provider("openai")
52-
.routing_mode(client::RouterMode::WRR)
52+
.router_mode(client::RouterMode::WRR)
5353
.model(
5454
client::ModelConfig::builder()
5555
.name("gpt-3.5-turbo")

0 commit comments

Comments
 (0)