Commit graph

5 commits

Author SHA1 Message Date
yangdx
4bdb8e30de
Fix linting 2025-02-06 23:04:28 +03:00
yangdx
1508dcb403
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 23:04:26 +03: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