From 2dccd679403c5cf89461f050033dab9b192a01f1 Mon Sep 17 00:00:00 2001 From: Steve Brown Date: Fri, 9 Aug 2024 09:15:57 +0000 Subject: [PATCH] removed dbugging code from stream handling --- kong/llm/drivers/huggingface.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kong/llm/drivers/huggingface.lua b/kong/llm/drivers/huggingface.lua index c6069cdb4019..d61d4e592eb4 100644 --- a/kong/llm/drivers/huggingface.lua +++ b/kong/llm/drivers/huggingface.lua @@ -136,8 +136,7 @@ end local function handle_huggingface_stream(event_t, model_info, route_type) -- discard empty frames, it should either be a random new line, or comment if (not event_t.data) or (#event_t.data < 1) then - event_t.data = "{}" - --return + return end local event, err = cjson.decode(event_t.data)