- 12 Dec, 2025 1 commit
-
-
Alexander Gusak authored
-
- 01 Dec, 2025 1 commit
-
-
Bruce MacDonald authored
While processing the response stream during a chat or generation if an error is occurred it is parsed and returned to the user. The issue with the existing code is that this assumed the response would be valid JSON, which is not a safe assumption and caused cryptic error messages to be displayed due to parsing failures: `invalid character 'i' looking for beginning of value` This change updates the stream function to return the raw error string if it cant be parsed as JSON. This should help with debugging issues by making sure the actual error reaches the user.
-
- 23 Sep, 2025 1 commit
-
-
Patrick Devine authored
* auth: fix problems with the ollama keypairs This change adds several fixes including: - reading in the pubkey files correctly - fixing the push unit test to create a keypair file in a temp directory - not return 500 errors for normal status error
-
- 17 Sep, 2025 1 commit
-
-
Patrick Devine authored
-
- 16 Jul, 2025 1 commit
-
-
Bruce MacDonald authored
StatusError was unreachable, the client always checked for error messages in the response body first, and the server always includes error messages with HTTP error status codes.
-
- 27 May, 2025 1 commit
-
-
Patrick Devine authored
If OLLAMA_AUTH is set, sign each request w/ a timestamp and pass the signature in the token header
-
- 27 Feb, 2025 1 commit
-
-
Steven Hartland authored
Fix the examples link in the go package documentation for the API.
-
- 20 Feb, 2025 1 commit
-
-
Bruce MacDonald authored
Added unit tests to verify error handling behavior in the Client.stream and Client.do methods. Tests cover various error scenarios including: - Error responses with status codes >= 400 - Error messages with successful status codes - Empty error messages - Successful responses
-
- 11 Nov, 2024 1 commit
-
-
Evan authored
-
- 14 Aug, 2024 1 commit
-
-
longtao authored
* Fix typo and improve readability Summary: * Rename updatAvailableMenuID to updateAvailableMenuID * Replace unused cmd parameter with _ in RunServer function * Fix typos in comments (cherry picked from commit 5b8715f0b04773369e8eb1f9e6737995a0ab3ba7) * Update api/client.go Co-authored-by:
Jeffrey Morgan <jmorganca@gmail.com> --------- Co-authored-by:
Jeffrey Morgan <jmorganca@gmail.com>
-
- 02 Aug, 2024 1 commit
-
-
Michael Yang authored
-
- 22 Jul, 2024 1 commit
-
-
Michael Yang authored
-
- 15 Jul, 2024 1 commit
-
-
royjhan authored
* Initial Batch Embedding * Revert "Initial Batch Embedding" This reverts commit c22d54895a280b54c727279d85a5fc94defb5a29. * Initial Draft * mock up notes * api/embed draft * add server function * check normalization * clean up * normalization * playing around with truncate stuff * Truncation * Truncation * move normalization to go * Integration Test Template * Truncation Integration Tests * Clean up * use float32 * move normalize * move normalize test * refactoring * integration float32 * input handling and handler testing * Refactoring of legacy and new * clear comments * merge conflicts * touches * embedding type 64 * merge conflicts * fix hanging on single string * refactoring * test values * set context length * clean up * testing clean up * testing clean up * remove function closure * Revert "remove function closure" This reverts commit 55d48c6ed17abe42e7a122e69d603ef0c1506787. * remove function closure * remove redundant error check * clean up * more clean up * clean up
-
- 12 Jun, 2024 1 commit
-
-
Patrick Devine authored
-
- 06 Jun, 2024 1 commit
-
-
royjhan authored
* Remove false time fields * Struct Separation for List and Process * Remove Marshaler
-
- 14 May, 2024 1 commit
-
-
Patrick Devine authored
-
- 07 May, 2024 1 commit
-
-
Eli Bendersky authored
* api: fill up API documentation Followup for #2878 Now that the documentation is more complete, mention it in the README. Updates #2840 * fix typo/lint * Update README.md Co-authored-by:
Jeffrey Morgan <jmorganca@gmail.com> --------- Co-authored-by:
Jeffrey Morgan <jmorganca@gmail.com>
-
- 29 Apr, 2024 1 commit
-
-
Patrick Devine authored
-
- 23 Apr, 2024 1 commit
-
-
Daniel Hiltgen authored
This change adds support for multiple concurrent requests, as well as loading multiple models by spawning multiple runners. The default settings are currently set at 1 concurrent request per model and only 1 loaded model at a time, but these can be adjusted by setting OLLAMA_NUM_PARALLEL and OLLAMA_MAX_LOADED_MODELS.
-
- 10 Apr, 2024 1 commit
-
-
Eli Bendersky authored
* api: start adding documentation to package api Updates #2840 * Fix lint typo report
-
- 08 Apr, 2024 1 commit
-
-
Michael Yang authored
-
- 26 Mar, 2024 1 commit
-
-
Patrick Devine authored
-
- 20 Feb, 2024 1 commit
-
-
Michael Yang authored
default client already handles proxy
-
- 04 Jan, 2024 1 commit
-
-
Brian Murray authored
-
- 05 Dec, 2023 3 commits
-
-
Bruce MacDonald authored
-
Michael Yang authored
-
Jeffrey Morgan authored
This reverts commit 7a0899d6.
-
- 04 Dec, 2023 1 commit
-
-
Bruce MacDonald authored
- update chat docs - add messages chat endpoint - remove deprecated context and template generate parameters from docs - context and template are still supported for the time being and will continue to work as expected - add partial response to chat history
-
- 15 Nov, 2023 2 commits
-
-
Michael Yang authored
-
Michael Yang authored
-
- 02 Nov, 2023 1 commit
-
-
Michael Yang authored
-
- 27 Oct, 2023 1 commit
-
-
Bruce MacDonald authored
* allow for a configurable ollama models directory - set OLLAMA_MODELS in the environment that ollama is running in to change where model files are stored - update docs Co-Authored-By:
Jeffrey Morgan <jmorganca@gmail.com> Co-Authored-By:
Jay Nakrani <dhananjaynakrani@gmail.com> Co-Authored-By:
Akhil Acharya <akhilcacharya@gmail.com> Co-Authored-By:
Sasha Devol <sasha.devol@protonmail.com>
-
- 26 Oct, 2023 1 commit
-
-
Michael Yang authored
-
- 20 Oct, 2023 1 commit
-
-
Michael Yang authored
-
- 13 Oct, 2023 1 commit
-
-
Michael Yang authored
-
- 11 Oct, 2023 2 commits
-
-
Michael Yang authored
-
Bruce MacDonald authored
* update streaming request accept header * add optional stream param to request bodies
-
- 09 Oct, 2023 1 commit
-
-
Michael Yang authored
-
- 04 Oct, 2023 1 commit
-
-
Bruce MacDonald authored
-
- 06 Sep, 2023 1 commit
-
-
Patrick Devine authored
-