Skip to content

Commit

Permalink
remove duplicate interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoedecke committed Oct 7, 2024
1 parent f90e447 commit 228c26b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion internal/azure_models/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type ChatCompletion struct {
}

type ChatCompletionResponse struct {
Reader sse.EventReaderInterface[ChatCompletion]
Reader sse.Reader[ChatCompletion]
}

type modelCatalogSearchResponse struct {
Expand Down
5 changes: 0 additions & 5 deletions internal/sse/eventreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 228c26b

Please sign in to comment.