From 4f80aa888b334b5bfa75a5784863759a0cad4232 Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 4 Oct 2024 21:08:37 +0200 Subject: [PATCH] test method removed --- api_webchat/model-worker-ollama.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/api_webchat/model-worker-ollama.js b/api_webchat/model-worker-ollama.js index eea65d6d..9b4485ed 100644 --- a/api_webchat/model-worker-ollama.js +++ b/api_webchat/model-worker-ollama.js @@ -132,17 +132,4 @@ self.onmessage = async function(event) { stopStreaming = true; break; //stop } -}; - - -// Function to split a string in half -function splitStringInHalf(inputString) { - // Get the middle index of the string - const middleIndex = Math.ceil(inputString.length / 2); - - // Split the string into two halves - const firstHalf = inputString.slice(0, middleIndex); - const secondHalf = inputString.slice(middleIndex); - - return { firstHalf, secondHalf }; - } \ No newline at end of file +}; \ No newline at end of file