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 {
|
||||
model: self.model.clone(),
|
||||
messages: msgs,
|
||||
max_tokens: Some(450), // abt 1800 characters
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue