64bit / async-openai

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

Test compilation failed #183

Closed ifsheldon closed 7 months ago

ifsheldon commented 8 months ago

When I tried to update #125 and do a full compilation including tests, I saw this line fails to compile.

https://github.com/64bit/async-openai/blob/f28303b3867b62d57722bc3867942baf6fc39bbd/async-openai/src/file.rs#L87

The error is

image

A quick fix is

let list_files = client.files().list("").await.unwrap();

but I don't know what you want to test and I see the code came from you, so probably you can fix it yourself? @64bit

64bit commented 8 months ago

Dang, this is my bad. yeah anything empty works including empty [] for query param.

Tests in file.rs were to test all file related APIs. I'll add fix for this.

64bit commented 7 months ago

This is fixed in https://github.com/64bit/async-openai/commit/30f8b6a326ffe89e1698f36df631adeaadf7c498