Fix README example
This commit is contained in:
parent
7b3a2ad5c1
commit
c13b019ee9
@ -45,7 +45,7 @@ To configure the prompt more explicitly, you can use the `CompletionArgs` builde
|
|||||||
```rust
|
```rust
|
||||||
let args = openai_api::api::CompletionArgs::builder()
|
let args = openai_api::api::CompletionArgs::builder()
|
||||||
.prompt("Once upon a time,")
|
.prompt("Once upon a time,")
|
||||||
.engine(Engine::Davinci)
|
.engine("davinci")
|
||||||
.max_tokens(20)
|
.max_tokens(20)
|
||||||
.temperature(0.7)
|
.temperature(0.7)
|
||||||
.top_p(0.9)
|
.top_p(0.9)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user