Use EventSource for SSE implementation (#96)
* Add package dependency for github.com/loopwork-ai/EventSource * Use EventSource for SSE implementation * Refactor response stream and content type handling Co-authored-by: Stephen Tallent <stallent@mercury.io> * Conditionalize use of streaming for supported platforms * Refactor conditional platform handling * Conditionalize code and package dependency on Linux --------- Co-authored-by: Stephen Tallent <stallent@mercury.io>
This commit is contained in:
parent
2b67a1233f
commit
3ff1085e01
1 changed files with 193 additions and 143 deletions
|
|
@ -341,7 +341,7 @@ import Testing
|
|||
Issue.record("Expected MCPError.internalError, got \(error)")
|
||||
throw error
|
||||
}
|
||||
#expect(message?.contains("HTTP error: 500") ?? false)
|
||||
#expect(message?.contains("Server error: 500") ?? false)
|
||||
} catch {
|
||||
Issue.record("Expected MCPError, got \(error)")
|
||||
throw error
|
||||
|
|
|
|||
Loading…
Reference in a new issue