diff --git a/internal/azure_models/types.go b/internal/azure_models/types.go index bb3ecf6..c3f7acf 100644 --- a/internal/azure_models/types.go +++ b/internal/azure_models/types.go @@ -50,7 +50,7 @@ type ChatCompletion struct { } type ChatCompletionResponse struct { - Reader sse.EventReaderInterface[ChatCompletion] + Reader sse.Reader[ChatCompletion] } type modelCatalogSearchResponse struct { diff --git a/internal/sse/eventreader.go b/internal/sse/eventreader.go index 84b16f7..5eddcc8 100644 --- a/internal/sse/eventreader.go +++ b/internal/sse/eventreader.go @@ -10,11 +10,6 @@ import ( "strings" ) -type EventReaderInterface[T any] interface { - Read() (T, error) - Close() error -} - // Reader is an interface for reading events from an SSE stream. type Reader[T any] interface { // Read reads the next event from the stream.