Skip to content

Commit

Permalink
increase max output tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jul 20, 2024
1 parent d001c3b commit c8f38f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ impl eframe::App for App {
.changed()
{
// eprintln!("{}", entry.content);
let debounce_tx = self.debounce_tx.clone();
let entry_content = entry.content.clone();
tokio::spawn(async move {
debounce_tx.unwrap().send(entry_content).await.unwrap();
});
// let debounce_tx = self.debounce_tx.clone();
// let entry_content = entry.content.clone();
// tokio::spawn(async move {
// debounce_tx.unwrap().send(entry_content).await.unwrap();
// });
};
// if ui.button("remove").clicked() {
// WHEEL_WINDOWS.lock().unwrap().get_mut(i).unwrap().0.remove(j);
Expand Down Expand Up @@ -781,7 +781,7 @@ pub(crate) async fn run_openai(

let request = CreateChatCompletionRequestArgs::default()
.model(model)
.max_tokens(4096u16)
.max_tokens(16384u16)
.messages(messages)
.build()?;

Expand Down

0 comments on commit c8f38f6

Please sign in to comment.