omi
omi copied to clipboard
[Bounty proposal] fix(file-tools): validate non-empty question, coerce file_ids/video spans, and harden config extraction ($50 proposed)
Bounty Proposal: File Search Tool Resilience & Parameter Validation ($50 USD)
Pull Request: https://github.com/BasedHardware/omi/pull/23139 Target Maintainers: @kodjima33 @josancamon19
Description
Hardens backend/utils/retrieval/tools/file_tools.py against unexpected tool invocation parameters:
- Validates that
questionis non-empty before invoking provider endpoints. - Supports single string coercion for
file_idsand safe float conversion for video span bounds. - Guards against
{'configurable': None}and supports top-leveluser_id/chat_session_id. - Adds hermetic unit test suite (10/10 passing) in
backend/tests/unit/test_file_tools.py.
Settlement Details
- Proposed Bounty: $50 USD
- Payout Address:
0xb95e2AD8E9D9e9BF902c7531577Cd0E1ceB203D4(EVM / Base Mainnet USDC)
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏