async-openai icon indicating copy to clipboard operation
async-openai copied to clipboard

[suggestion] Let list methods take an Option argument

Open vrurg opened this issue 7 months ago • 5 comments

Maybe this is my lack of experience, but when I'm requesting just a full list of objects like files I have to write something like:

    let file_list = files.list::<[&str; 0]>(&[]).await?;

Wouldn't it be better to let it be just files.list(None).await??

vrurg avatar Jul 12 '24 00:07 vrurg