Closed Sagebati closed 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 structRequestBuilder
in the current scope --> /home/avtrujillo/.cargo/git/checkouts/async-openai-5703665dc8648d70/486e1bc/async-openai/src/client.rs:336:14330 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 structRequestBuilder
in the current scope --> /home/avtrujillo/.cargo/git/checkouts/async-openai-5703665dc8648d70/486e1bc/async-openai/src/client.rs:358:14352 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 compileasync-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
reqwest-eventsource got merged, I updated the version to 0.6.0.
Thank you for upgrading dependencies!
PS: I'll take liberty to update the PR description to reflect the changes
Waiting https://github.com/jpopesculian/reqwest-eventsource/pull/20