fix: route web prediction prompts to market data - #21
Merged
Conversation
…ll false positives A regex match here forces a paid tool_choice call the model cannot decline, so the matcher must be near-zero false positive. Review of PR #21 found the opposite: - bare "odds" fired on everyday English ("odds and ends", "odds ratio", "odds of rolling two sixes") and made "betting odds" dead - bare "limitless" fired on the common adjective; now requires market context (limitless.exchange / limitless exchange|market(s)) - bare CJK 胜率/盘口/赔率 fired on game win rates, order-book slang and lottery questions; now require betting context (预测/押注/下注/博彩) - the canonical plural "prediction markets" never matched because the trailing \b rejected the "s"; now prediction markets? and implied probabilit(y|ies) both match Also from review: - implied routing now only runs with a connected wallet, so wallet-less visitors asking a matching question get an answer instead of a wallet-connect wall - the focus nudge no longer claims "the user selected" a capability the regex chose; on a residual false positive the model is told to ignore an irrelevant result and answer the actual question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
▲ Next.js 16.2.1 (Turbopack)
Creating an optimized production build ...
Review
odds/limitless/胜率/盘口triggers (forced-paid-call false positives), fixed theprediction marketsplural under-match, gated implied routing on a connected wallet, honest focus nudge for implied routing.