max token
This commit is contained in:
parent
e892932090
commit
8baaec182b
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ impl EventHandler for Handler {
|
||||||
.create_chat_completion(openai::ChatCompletion {
|
.create_chat_completion(openai::ChatCompletion {
|
||||||
model: self.model.clone(),
|
model: self.model.clone(),
|
||||||
messages: msgs,
|
messages: msgs,
|
||||||
|
max_tokens: Some(450), // abt 1800 characters
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in a new issue