Skip to content

Commit 511af44

Browse files
committed
fixed errors due to the cherrypick
1 parent aa805d7 commit 511af44

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

async-openai/src/webhooks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::types::webhooks::WebhookEvent;
2-
use base64::{engine::general_purpose::STANDARD as BASE64, Engine};
2+
use base64::{Engine, engine::general_purpose::STANDARD as BASE64};
33
use hmac::{Hmac, Mac};
44
use sha2::Sha256;
55
use std::time::{SystemTime, UNIX_EPOCH};

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", features = ["webhook"] }
7+
async-openai-wasm = { 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/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
//! The example will automatically send a background response request
3030
//! and you'll see the webhook events being received!
3131
32-
use async_openai::traits::{EventId, EventType};
33-
use async_openai::types::responses::{
32+
use async_openai_wasm::traits::{EventId, EventType};
33+
use async_openai_wasm::types::responses::{
3434
CreateResponseArgs, EasyInputContent, EasyInputMessage, InputItem, InputParam, MessageType,
3535
Role,
3636
};
37-
use async_openai::types::webhooks::WebhookEvent;
38-
use async_openai::webhooks::Webhooks;
39-
use async_openai::Client;
37+
use async_openai_wasm::types::webhooks::WebhookEvent;
38+
use async_openai_wasm::webhooks::Webhooks;
39+
use async_openai_wasm::Client;
4040
use axum::{
4141
body::Bytes,
4242
extract::State,

0 commit comments

Comments
 (0)