From e08bf38eb188fb6c8d9c4a2f9b5d8a0eec788d80 Mon Sep 17 00:00:00 2001 From: yacine Date: Mon, 15 May 2023 10:23:01 -0400 Subject: [PATCH] oops, temperature. lmao --- vscode_extension/wolverine/src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vscode_extension/wolverine/src/extension.ts b/vscode_extension/wolverine/src/extension.ts index c484d8c..4827c25 100644 --- a/vscode_extension/wolverine/src/extension.ts +++ b/vscode_extension/wolverine/src/extension.ts @@ -13,7 +13,7 @@ import axios from 'axios'; // Flush interval is 30 milliseconds, because that's what the author found works well on the author's system. // Ryzen 5900x + arch linux (btw) -const FLUSH_INTERVAL_MS = 30; +const FLUSH_INTERVAL_MS = 5; const countCharacters = (text: string) => text.replace(/\n/g, '').length; const countNewLines = (text: string) => text.match(/\n/g)?.length || 0; @@ -59,7 +59,7 @@ const streamCompletion = async (prompt: string, onDataFunction: (chunk: any) => const data = { 'model': configurationModel || 'gpt-3.5-turbo', 'messages': messages, - 'temperature': 0.9, + 'temperature': 0.1, 'stream': true, }; return new Promise(async (resolve, reject) => {