From 443c075bd07046c91a1a681cd54661bfa365ea2b Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Fri, 17 Jan 2025 16:50:57 +0800 Subject: [PATCH] fix(ai): (cohere) support new application/stream+json default stream content type Co-authored-by: Jack Tysoe --- kong/llm/drivers/shared.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/kong/llm/drivers/shared.lua b/kong/llm/drivers/shared.lua index d35b1685b2dc..4c01fb21b8db 100644 --- a/kong/llm/drivers/shared.lua +++ b/kong/llm/drivers/shared.lua @@ -82,6 +82,7 @@ _M._SUPPORTED_STREAMING_CONTENT_TYPES = { ["text/event-stream"] = true, ["application/vnd.amazon.eventstream"] = true, ["application/json"] = true, + ["application/stream+json"] = true, } _M.streaming_has_token_counts = {