openai-api-rust icon indicating copy to clipboard operation
openai-api-rust copied to clipboard

CompletionArgsBuilder doesn't implement From<&str>?

Open joshua-mo-143 opened this issue 2 years ago • 0 comments

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.

joshua-mo-143 avatar Feb 18 '23 16:02 joshua-mo-143