Skip to content

Commit 1d53af4

Browse files
committed
update readme
1 parent cfb92e4 commit 1d53af4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

async-openai/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
- WASM.
5151
- Middleware support with [tower](https://crates.io/crates/tower) ecosystem.
5252

53-
**OpenAI compatible providers**
53+
**+ OpenAI compatible providers**
5454
- Bring your own custom types for Request or Response objects.
5555
- Customize path, query and headers per request or for all requests.
5656
- Microsoft Azure OpenAI Service.
@@ -149,10 +149,10 @@ let response: Value = client
149149
```
150150

151151
This can be useful in many scenarios:
152-
- To use this library with other OpenAI compatible APIs whose types don't exactly match OpenAI.
153-
- Extend existing types in this crate with new fields with `serde` (for example with `#[serde(flatten)]`).
152+
- When shape of request/response in OpenAI-compatible APIs don't exactly match OpenAI.
153+
- Extend existing types in this crate with new fields like `extra_body` (with serde flatten)
154154
- To avoid typing verbose types.
155-
- To escape deserialization errors.
155+
- To escape deserialization errors on expected type and actual response mismatch.
156156

157157
`*_byot` methods require same trait bounds as regular methods.
158158

0 commit comments

Comments
 (0)