We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6c583 commit bd283dcCopy full SHA for bd283dc
examples/webhooks/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
4
edition = "2021"
5
6
[dependencies]
7
-async-openai = { path = "../../async-openai" }
+async-openai = { path = "../../async-openai", features = ["webhook"] }
8
tokio = { version = "1.42.0", features = ["full"] }
9
axum = "0.7.9"
10
tracing = "0.1.41"
examples/webhooks/README.md
@@ -2,6 +2,15 @@
2
3
This example demonstrates how to handle OpenAI webhook events using the `async-openai` library, including signature verification.
+## Feature Requirement
+
+This example requires the `webhook` feature to be enabled:
+```toml
+[dependencies]
11
+async-openai = { version = "*", features = ["webhook"] }
12
+```
13
14
15
16
## Running the Example
0 commit comments