v0.0.8
Dynamic Tier-Based Search Pricing
This release introduces dynamic, tier-based billing for searches and replaces ad-hoc request parsing with validated schemas, alongside a configuration cleanup pass.
- Replaced static search pricing with a dynamic cost model based on request size
- Applied an incremental cost increase for searches exceeding a defined website threshold
- Integrated dynamic cost calculation directly into the search endpoint, deducting credits accordingly
- Added new parameters to control crawl depth, result limits, and website source caps
Request Handling Fixes
Improvements to ensure search requests are handled more reliably across different client patterns.
- Fixed errors on POST requests sent without a JSON body
- Allowed POST requests to rely on query parameters instead of JSON bodies, preserving backward compatibility
Validation & Configuration Refactors
Internal improvements to request validation and configuration management.
- Introduced a validated request schema for normalized handling of JSON bodies and query parameters
- Replaced manual parsing and type casting with schema-based validation, simplifying tier limit enforcement
- Improved error handling with structured validation responses
- Removed hardcoded constants from configuration for improved maintainability