ollama-python
ollama-python copied to clipboard
refactor: Fix type annotation errors and remove unused code
This change fixes annoying LSP diagnostic errors when using this library and pyright/basedpyright is set to strict mode.
The main issue was that the overloads for methods with a stream option were incorrect and confused the LSP. Also removes a function that was never used.