9 Commits

Author SHA1 Message Date
Blake Mizerany
c87fe7df48 client/ollama: make Error.Message optional 2024-03-31 11:12:50 -07:00
Blake Mizerany
5182a1dfb1 client/ollama: document Do 2024-03-31 11:04:20 -07:00
Blake Mizerany
a32e7857b2 client/ollama: docs for Error type 2024-03-31 11:00:07 -07:00
Blake Mizerany
6acc205de0 client/ollama: install and use (*Client).HTTPClient 2024-03-31 10:54:17 -07:00
Blake Mizerany
f6e02d4bc7 client/ollama: Do take a *Client 2024-03-31 10:52:56 -07:00
Blake Mizerany
e1d457c73e client/ollama: report invalid server error response with raw bytes 2024-03-31 09:43:03 -07:00
Blake Mizerany
cd5df121a5 client: include Status in json Error response for symmetry.
Also, remove RawBody from error, which was previously used for
debugging.
2024-03-31 09:30:01 -07:00
Blake Mizerany
112ffed189 oweb: move Error and Do to client/ollama
This allows users of the ollama client library to need only import the
client/ollama package, rather than the oweb package as well when
inspecting errors.
2024-03-31 09:25:07 -07:00
Blake Mizerany
c49947dcf5 init 2024-03-31 09:24:53 -07:00