deontologician / openai-api-rust

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

fix: Readme Typo #15

Open milldr opened 1 year ago

milldr commented 1 year ago

What

corrected complete() to complete_prompt()

Why

Incorrect method name:

error[E0599]: no method named `complete` found for struct `Client` in the current scope
  --> src/main.rs:11:16
   |
11 |         client.complete(prompt.as_str()).await?
   |                ^^^^^^^^ help: there is a method with a similar name: `complete_prompt`