Blake Mizerany
f488652ba7
build: make Build accept only refs without builds
2024-04-01 22:12:43 -07:00
Blake Mizerany
2318ed2919
build: remove unused manifest()
2024-04-01 21:59:38 -07:00
Blake Mizerany
b1b8be33d9
build: cleanup error names and other things
2024-04-01 21:57:34 -07:00
Blake Mizerany
876f7eab81
build: move Manifest from internal/blobstore to build
...
It was getting confusing to have the arbirary handling of manifests in
the blobstore. It also prevented us from using model.Ref in the
blobstore because of cyclic dependencies.
This is much easier to grok now.
2024-04-01 21:43:30 -07:00
Blake Mizerany
7cfc8a0838
build/blob: fix awkward Ref type
2024-04-01 21:25:18 -07:00
Blake Mizerany
fd411b3cf6
registry: commit Manifest
2024-03-31 18:20:19 -07:00
Blake Mizerany
04f38cf3f4
registry: commit manifest on successful /v1/push
2024-03-31 15:09:24 -07:00
Blake Mizerany
c0eddb10fd
registry: use exact match on path
2024-03-31 15:01:26 -07:00
Blake Mizerany
60ef0e6b4a
oweb: remove Fault
...
Also, fix typo in the comment.
2024-03-31 15:00:25 -07:00
Blake Mizerany
48c60c01e2
registry: move req/resp types to registry/apitype
2024-03-31 12:23:10 -07:00
Blake Mizerany
eb2c442a01
oweb: make DecodeUserJSON take a field name
...
This allows for better error messages when decoding fails. For example,
instead of:
{"code":"invalid_json","message":"unexpected end of JSON input"}
We now get:
{"code":"invalid_json","field":"manifest","message":"unexpected end of JSON input"}
2024-03-31 11:36:51 -07:00
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