Files
ollama/cmd
Bruce MacDonald 9e190ac4d9 api: return structured error on unauthorized push
This commit implements a structured error response system for the Ollama API, replacing
ad-hoc error handling and string parsing with proper error types and codes through a new
ErrorResponse struct. Instead of relying on regex to parse error messages for SSH keys,
the API now passes this data in a structured format with standardized fields for error
messages, codes, and additional data. This structured approach makes the API more
maintainable and reliable while improving the developer experience by enabling
programmatic error handling, consistent error formats, and better error
documentation.
2024-12-12 11:49:36 -08:00
..
2024-08-01 17:06:06 -07:00
2024-08-01 17:06:06 -07:00
2024-08-01 17:06:06 -07:00
2024-06-04 11:13:30 -07:00