ollama/api
Bruce MacDonald 4d9568172d api: add optional hints to errors for troubleshooting
Introduces structured error responses that pair error messages with user-friendly
troubleshooting hints. This improves error handling across the codebase and
provides better guidance to users when things go wrong.

Key changes:
- Add ErrorResponse type with Err and Hint fields
- Update client to handle structured errors in streaming and regular responses
- Add specific error handling for common cases like missing models
- Improve CLI output to clearly show both errors and hints
- Add comprehensive test coverage for new error formats

Maintains backward compatibility with existing error handling while making error
messages more helpful and actionable for users.
2025-02-11 13:47:32 -08:00
..
examples docs: improve syntax highlighting in code blocks (#8854) 2025-02-07 09:55:07 -08:00
client.go api: add optional hints to errors for troubleshooting 2025-02-11 13:47:32 -08:00
client_test.go api: add optional hints to errors for troubleshooting 2025-02-11 13:47:32 -08:00
types.go api: add optional hints to errors for troubleshooting 2025-02-11 13:47:32 -08:00
types_test.go lint 2024-08-01 17:06:06 -07:00