Skip to content

Commit bd283dc

Browse files
committed
update example
1 parent ae6c583 commit bd283dc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/webhooks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
async-openai = { path = "../../async-openai" }
7+
async-openai = { path = "../../async-openai", features = ["webhook"] }
88
tokio = { version = "1.42.0", features = ["full"] }
99
axum = "0.7.9"
1010
tracing = "0.1.41"

examples/webhooks/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
This example demonstrates how to handle OpenAI webhook events using the `async-openai` library, including signature verification.
44

5+
## Feature Requirement
6+
7+
This example requires the `webhook` feature to be enabled:
8+
9+
```toml
10+
[dependencies]
11+
async-openai = { version = "*", features = ["webhook"] }
12+
```
13+
514

615

716
## Running the Example

0 commit comments

Comments
 (0)