SimpleHttpClient
org.llm4s.imagegeneration.provider.SimpleHttpClient
class SimpleHttpClient(llm4sClient: Llm4sHttpClient) extends HttpClient
HttpClient over the shared org.llm4s.http.Llm4sHttpClient. That client reports a transport failure as a Left; this adapter turns it into a Failure holding an the exception that caused it where the error carries one (as a connection failure or timeout does), else an IOException with the error's message - so the image clients' Try-based error handling sees what it saw when the client threw.
Attributes
- Graph
-
- Supertypes
Members list
In this article