diff --git a/koboldcpp.py b/koboldcpp.py index 96c04acd1..4d60e2665 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -566,17 +566,6 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler): force_json = False if self.path in ["", "/?"] or self.path.startswith(('/?','?')): #it's possible for the root url to have ?params without / - if args.stream and not "streaming=1" in self.path: - self.path = self.path.replace("streaming=0","") - if self.path.startswith(('/?','?')): - self.path += "&streaming=1" - else: - self.path = self.path + "?streaming=1" - self.send_response(302) - self.send_header("Location", self.path) - self.end_headers() - print("Force redirect to streaming mode, as --stream is set.") - return None if self.embedded_kailite is None: response_body = (f"Embedded Kobold Lite is not found.
You will have to connect via the main KoboldAI client, or use this URL to connect.").encode()