Skip to content

Commit f491774

Browse files
committed
chore: Update README to replace Role with MessageRole for consistency
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent ddda239 commit f491774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Run `cargo add inference-gateway-sdk`.
2222
### Creating a Client
2323

2424
```rust
25-
use inference_gateway_sdk::{InferenceGatewayClient, Message, Provider, Role};
25+
use inference_gateway_sdk::{InferenceGatewayClient, Message, Provider, MessageRole};
2626
use log::info;
2727
use std::error::Error;
2828

@@ -59,7 +59,7 @@ fn main() -> Result<(), Box<dyn Error>> {
5959
To list all available models from all configured providers, use the `list_models` method:
6060

6161
```rust
62-
use inference_gateway_sdk::{InferenceGatewayClient, Message, Provider, Role};
62+
use inference_gateway_sdk::{InferenceGatewayClient, Message, Provider, MessageRole};
6363
use log::info;
6464

6565
fn main() -> Result<(), Box<dyn Error>> {

0 commit comments

Comments
 (0)