Skip to content

fix: allow contextual synopsis model env override#1358

Open
lost9999 wants to merge 3 commits into
garrytan:masterfrom
lost9999:fix/contextual-synopsis-model-env
Open

fix: allow contextual synopsis model env override#1358
lost9999 wants to merge 3 commits into
garrytan:masterfrom
lost9999:fix/contextual-synopsis-model-env

Conversation

@lost9999
Copy link
Copy Markdown

Summary

  • lets contextual retrieval synopsis use GBRAIN_CONTEXTUAL_SYNOPSIS_MODEL before falling back to Anthropic Haiku
  • enables operators without ANTHROPIC_API_KEY to route per_chunk_synopsis through their configured gateway model

Test Plan

  • bun --check src/core/contextual-retrieval-service.ts

Context: local Postgres brain had per_chunk_synopsis jobs falling back to title with audit detail: Anthropic chat requires ANTHROPIC_API_KEY, despite GBRAIN_CONTEXTUAL_SYNOPSIS_MODEL being set in the worker env.

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