Skip to content

feat: default AI_DETERMINISTIC_MATCH to true#121

Merged
akifbayram merged 1 commit into
mainfrom
feat/ai-planner-default-on
May 7, 2026
Merged

feat: default AI_DETERMINISTIC_MATCH to true#121
akifbayram merged 1 commit into
mainfrom
feat/ai-planner-default-on

Conversation

@akifbayram

Copy link
Copy Markdown
Owner

Summary

  • Flips AI_DETERMINISTIC_MATCH default from falsetrue. The Ask AI inventory query path uses the LLM-planner + SQL-executor architecture from feat: LLM query planner for Ask AI inventory queries #118 by default; legacy LLM-as-matcher reachable via AI_DETERMINISTIC_MATCH=false as a kill-switch for providers without structured-output support.
  • Refreshes the now-stale env doc and config comment — the previous text described an earlier formatter-only iteration that the planner replaced.
  • Inverts the default-value tests to match the new default.

The cloud + demo env files in openbin-deploy already set this flag to true (8880642), so this PR is a no-op for production behavior. It makes the default match what cloud has been running, so self-hosters on Anthropic / OpenAI / Gemini get the planner without per-deploy configuration. Flag is retained as a kill-switch and slated for full removal after ~2 weeks of soak.

Test plan

  • npx biome check clean
  • cd server && npx tsc --noEmit clean
  • Flag tests pass: cd server && npx vitest run src/lib/__tests__/configDeterministicMatch.test.ts src/__tests__/aiStreamDeterministicFlag.test.ts — 3/3
  • CI green
  • Cloud Ask AI smoke after merge

Flip the planner path on by default for /api/ai/query/stream and the query
branch of /api/ai/ask/stream. Legacy LLM-as-matcher remains reachable via
AI_DETERMINISTIC_MATCH=false as a kill-switch for providers without
structured-output support. Refresh the now-stale env doc and config comment
to describe the planner architecture (the old text described an earlier
formatter-only iteration), and invert the default-value tests.
@akifbayram akifbayram merged commit 2a8a400 into main May 7, 2026
1 check passed
@akifbayram akifbayram deleted the feat/ai-planner-default-on branch May 7, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant