deontologician / openai-api-rust

Rust client for OpenAI API
Apache License 2.0
104 stars 26 forks source link

CompletionArgsBuilder doesn't implement From<&str>? #18

Open joshua-mo-143 opened 1 year ago

joshua-mo-143 commented 1 year ago

Hi there!

I tried using the CompletionArgs builder and tried using it in complete_prompt like in the example but I'm receiving this error:

the trait bound `CompletionArgs: From<&mut CompletionArgsBuilder>` is not satisfied
the trait `From<&str>` is implemented for `CompletionArgs`
required for `&mut CompletionArgsBuilder` to implement `Into<CompletionArgs>`

Is this supposed to be correct?

Thank you for any assistance.