ollama/openai
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
..
openai.go api: add optional hints to errors for troubleshooting 2025-02-11 13:47:32 -08:00
openai_test.go openai: return usage as final chunk for streams (#6784) 2024-12-12 17:09:30 -08:00