All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Complete Vision API Parity: Full feature parity with Node.js/JSR SDK
- Advanced Vision Methods:
analyze_with_confidence()- Analysis with confidence scoringbatch_analyze()- Batch processing for multiple imagescreate_response()- Advanced input format compatibilitycompare_images()- Multi-image comparisongenerate_caption()- Social media caption generation with style options
- Enhanced Error Handling: Better timeout handling and endpoint fallback
- Improved Retry Logic: Smarter retry with exponential backoff
- Comprehensive Examples: Complete example files matching Node.js patterns
- Updated Documentation: Extensive README with all vision capabilities
- Utility Functions:
encode_image()andcreate_data_url()helpers - Better Type Hints: Improved type annotations for vision API
- Vision API Performance: Reduced default timeout to 60s for better responsiveness
- Endpoint Management: Dynamic baseURL support with fallback endpoints
- Logging: Added detailed request logging for debugging
- Response Format: Consistent response format across all vision methods
- Timeout Issues: Better handling of gateway timeouts (524 errors)
- Server Error Retries: Proper 5xx error retry logic
- API Compatibility: Full compatibility with SVECTOR vision endpoints
- Initial release of SVECTOR Python SDK
- Complete chat completions API with streaming support
- File upload and RAG (Retrieval Augmented Generation) capabilities
- Models API for listing available models
- Comprehensive error handling with specific error types
- Command-line interface (CLI) for easy interaction
- Support for multiple file upload methods (path, bytes, file object)
- Multi-turn conversation support
- Automatic retry logic with exponential backoff
- Type hints for better developer experience
- Comprehensive documentation and examples
- Chat API: Complete chat completions with customizable parameters
- Streaming: Real-time response streaming via Server-Sent Events
- File Upload: Support for various file formats for RAG functionality
- Error Handling: Specific error classes for different API scenarios
- CLI Tool: Full-featured command-line interface
- Python 3.8+: Support for modern Python versions
- Production Ready: Robust error handling and retry mechanisms
svector chat- Send chat messagessvector stream- Stream responses in real-timesvector models- List available modelssvector config- Manage API key configurationsvector file upload- Upload files for RAGsvector ask- Ask questions about uploaded files
- Chat completions with parameters (temperature, max_tokens, etc.)
- Streaming responses
- File uploads for RAG functionality
- Model listing
- Multi-file RAG queries
- Response metadata access
requests>=2.25.0- HTTP clienttyping-extensions>=4.0.0- Type hints for Python <3.10
pip install svectorfrom svector import SVECTOR
client = SVECTOR(api_key="your-api-key")
response = client.chat.create(
model="spec-3-turbo",
messages=[{"role": "user", "content": "Hello!"}]
)For more information, visit: https://www.svector.co.in