MessageStream interface represents a stream of chat completions
| 173 | |
| 174 | // MessageStream interface represents a stream of chat completions |
| 175 | type MessageStream interface { |
| 176 | // Recv gets the next completion chunk |
| 177 | Recv() (MessageStreamResponse, error) |
| 178 | // Close closes the stream |
| 179 | Close() |
| 180 | } |
| 181 | |
| 182 | // DetectMimeType returns the MIME type for a file by reading its first 512 |
| 183 | // bytes and inspecting the content (magic bytes). For text-based files that |
no outgoing calls
no test coverage detected