4 Commits

Author SHA1 Message Date
yangdx
e26c6e564d refactor: enhance stream error handling and optimize code structure
- Initialize timestamps at start to avoid null checks
- Add detailed error handling for streaming response
- Handle CancelledError and other exceptions separately
- Unify exception handling with trace_exception
- Clean up redundant code and simplify logic
2025-02-06 02:43:06 +08:00
yangdx
db9b4dc841 Added environment variable loading with dotenv in Ollama API 2025-02-06 01:00:49 +08:00
yangdx
1a61d9ee7f Fix linting 2025-02-05 22:29:07 +08:00
yangdx
f703334ce4 Split the Ollama API implementation to a separated file 2025-02-05 22:15:14 +08:00