How pypy66/sider-ai-api works
sider_ai_api is a compact Python client for Sider.ai. Its principal workflow is to create an authenticated Session, submit chat or image-OCR input, and consume streamed text while conversation and quota state are updated. The same Session also exposes translation, deep search, and grammar improvement. The excerpts show authentication setup, OCR upload, and several calls into the shared response parser; other request details are omitted, so those links are not inferred.
Main entry points: sider_ai_api.py Response streaming
Components 11
Session setup
- Authenticated session
sider_ai_api.py - Token and cookie
sider_ai_api.py
AI features
- Chat
sider_ai_api.py - Image OCR
sider_ai_api.py - Translation
sider_ai_api.py - Deep search
sider_ai_api.py - Grammar improvement
sider_ai_api.py
Request handling
- Image upload
sider_ai_api.py - Response streaming
sider_ai_api.py
Other components
- Library user
- Sider API
Connections 18
- Library user → Authenticated session: creates
README.md - Authenticated session → Token and cookie: loads credentials
sider_ai_api.py - Library user → Chat: submits prompt
README.md - Library user → Image OCR: submits image
README.md - Library user → Translation: requests translation
sider_ai_api.py - Library user → Deep search: requests search
sider_ai_api.py - Library user → Grammar improvement: requests improvement
sider_ai_api.py - Image OCR → Image upload: uploads image
sider_ai_api.py - Chat → Response streaming: parses response
sider_ai_api.py - Image OCR → Response streaming: parses response
sider_ai_api.py - Translation → Response streaming: parses response
sider_ai_api.py - Deep search → Response streaming: parses response
sider_ai_api.py - Grammar improvement → Response streaming: parses response
sider_ai_api.py - Chat → Sider API: calls service
- Image OCR → Sider API: calls service
- Translation → Sider API: calls service
- Deep search → Sider API: calls service
- Grammar improvement → Sider API: calls service