Changes
PR #2291 by pcbeingused333 and ksylvan: fix(lmstudio): close the stream channel on every error path
- Fixed LM Studio streaming so the stream channel is closed on every error path, preventing hangs and leaked goroutines.
- Consolidated the LM Studio stream error channel closure tests, combining HTTP failure and unavailable server scenarios into subtests.
- Updated tests to call
SendStreamdirectly and verify immediate channel closure, removing redundant goroutines, error channels, and timeout dependencies.