fix: correct typos in documentation
- Replace "overtime" with "over time": The term "overtime" typically refers to extra working hours, whereas "over time" correctly conveys the idea of gradual progression.
- Replace "sometime" with "sometimes": "Sometimes" is the correct adverb form to indicate occasional occurrence, ensuring clarity in the documentation.
## Problem
The current test file for the text splitter (`src/ai/text-splitter.test.ts`) had several limitations:
- Lacked comprehensive test coverage for edge cases
- Had repeated code setup in multiple test cases
- Missing explanatory comments for test scenarios
- Limited assertion coverage for boundary conditions
## Changes Made
1. **Improved Test Coverage:**
- Added new test cases for special characters and large texts
- Added boundary condition tests for chunkSize and chunkOverlap
- Enhanced existing test cases with more assertions
2. **Code Refactoring:**
- Extracted common setup code into `beforeEach` block
- Improved variable naming for better clarity
- Added descriptive comments explaining test scenarios
3. **Better Error Handling:**
- Added explicit test for invalid configuration (chunkSize equal to chunkOverlap)
- Enhanced assertion messages for better debugging
## Testing
- All existing tests pass
- New test cases validate edge scenarios
- Boundary conditions are properly tested
## Related Issues
Closes #[issue_number] (if applicable)
- Enhanced error logging in deepResearch to detect and log timeout errors specifically.
- Returns empty learnings and URLs on timeout or other errors, allowing graceful recovery.
- Added OPENAI_ENDPOINT in .env.local and retained default keys.
- Updated providers.ts to use baseURL from OPENAI_ENDPOINT.
- Conditionally override model names with OPENAI_MODEL when a custom endpoint is set.
- Supports custom provider configuration for local models via environment variables.