refactor: replace httpx client with NextcloudClient in upload command

- Use NextcloudClient with BasicAuth instead of raw httpx
- Replace direct HTTP POST with notes.create_note() method
- Add close() method to LLMProvider Protocol for proper cleanup
- Fix type annotations for dataset iteration

This improves code reuse and consistency with the rest of the codebase.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chris Coutinho
2025-11-15 23:26:07 +01:00
co-authored by Claude
parent c272ddd82d
commit c9506da2d2
2 changed files with 517 additions and 0 deletions
+4
View File
@@ -26,6 +26,10 @@ class LLMProvider(Protocol):
"""
...
async def close(self) -> None:
"""Close the provider and release resources."""
...
class OllamaProvider:
"""Ollama provider for local LLM inference."""