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