diff --git a/providers/cohere/chat.go b/providers/cohere/chat.go index fd845043..837908af 100644 --- a/providers/cohere/chat.go +++ b/providers/cohere/chat.go @@ -9,8 +9,6 @@ import ( "one-api/providers/base" "one-api/types" "strings" - - "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream" ) type CohereStreamHandler struct { @@ -53,8 +51,6 @@ func (p *CohereProvider) CreateChatCompletionStream(request *types.ChatCompletio Request: request, } - eventstream.NewDecoder() - return requester.RequestStream(p.Requester, resp, chatHandler.HandlerStream) }