ollama/server
Michael Yang 3b49315f97 retry on unauthorized chunk push
The token printed for authorized requests has a lifetime of 1h. If an
upload exceeds 1h, a chunk push will fail since the token is created on
a "start upload" request.

This replaces the Pipe with SectionReader which is simpler and
implements Seek, a requirement for makeRequestWithRetry. This is
slightly worse than using a Pipe since the progress update is directly
tied to the chunk size instead of controlled separately.
2023-08-18 11:23:47 -07:00
..
auth.go set the scopes correctly (#368) 2023-08-16 21:42:02 -07:00
download.go retry download on network errors 2023-08-15 15:07:19 -03:00
images.go retry on unauthorized chunk push 2023-08-18 11:23:47 -07:00
modelpath.go fix extended tag names (#171) 2023-07-21 20:27:25 -07:00
routes.go use loaded llm for embeddings 2023-08-15 10:50:54 -03:00