64bit / async-openai

Rust library for OpenAI
https://docs.rs/async-openai
MIT License
1.09k stars 161 forks source link

Upgrade dependencies: Rust crates in Cargo.toml #204

Closed Sagebati closed 5 months ago

Sagebati commented 5 months ago

Waiting https://github.com/jpopesculian/reqwest-eventsource/pull/20

avtrujillo commented 5 months ago

I'm getting the following error when I try to build with this:

Checking async-openai v0.19.1 (https://github.com/Sagebati/async-openai/#486e1bc6)
error[E0599]: no method named eventsource found for struct RequestBuilder in the current scope --> /home/avtrujillo/.cargo/git/checkouts/async-openai-5703665dc8648d70/486e1bc/async-openai/src/client.rs:336:14 330 let event_source = self ____- 331 .http_client 332 .post(self.config.url(path)) 333 .query(&self.config.query()) 334 .headers(self.config.headers()) 335 .json(&request) 336 .eventsource() -^^^^^^^^^^^ method not found in RequestBuilder _____
error[E0599]: no method named eventsource found for struct RequestBuilder in the current scope --> /home/avtrujillo/.cargo/git/checkouts/async-openai-5703665dc8648d70/486e1bc/async-openai/src/client.rs:358:14 352 let event_source = self ____- 353 .http_client 354 .get(self.config.url(path)) 355 .query(query) 356 .query(&self.config.query()) 357 .headers(self.config.headers()) 358 .eventsource() -^^^^^^^^^^^ method not found in RequestBuilder _____
Checking entities v0.1.0 (/home/avtrujillo/Workspace/transscribbit-sqlx/entities)

For more information about this error, try rustc --explain E0599. error: could not compile async-openai (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish...

This appears to be the result of the reqwest-eventsource crate still depending on reqwest ^0.11

Sagebati commented 5 months ago

reqwest-eventsource got merged, I updated the version to 0.6.0.

64bit commented 5 months ago

Thank you for upgrading dependencies!

PS: I'll take liberty to update the PR description to reflect the changes