Repository navigation
fix(config): remove VOYAGE_API_KEY support, require CHUNKHOUND_EMBEDDING__API_KEY (#454) - #455
Open
iamcipherdev wants to merge 1 commit into
Open
iamcipherdev wants to merge 1 commit into
iamcipherdev wants to merge 1 commit into
Conversation
…ING__API_KEY (chunkhound#454) VOYAGE_API_KEY is no longer read: both the env-layer fallback and the merged-layer fallback from chunkhound#453 are removed. When voyageai is selected and no layer supplies an embedding API key while VOYAGE_API_KEY is set, configuration now fails with an error saying what to rename. The missing-config message, provider docstring, docs table, and changelog name only CHUNKHOUND_EMBEDDING__API_KEY. Contract tests cover the migration error for env, local, global, and CLI provider sources, plus the no-error cases for configured keys and non-voyageai providers.
Collaborator
|
Summary: The change is small and correctly scoped, but the new migration error also fires for VoyageAI setups with a base_url, where the API key is optional, so it breaks setups that work today. Strengths:
Issues:
|
This branch has not been deployed
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.
Closes #454
VOYAGE_API_KEY is no longer read anywhere: both the env-layer fallback and the merged-layer fallback from #453 are removed. When voyageai is selected and no layer supplies an embedding API key while VOYAGE_API_KEY is set, configuration now fails with an error naming the replacement (CHUNKHOUND_EMBEDDING__API_KEY or embedding.api_key in .chunkhound.json). Setups that already use the CHUNKHOUND_ variable or a config-file key are unaffected, and non-voyageai providers ignore VOYAGE_API_KEY entirely.
Verification: smoke tests 14/14 pass; all 7 voyage contract tests pass (incl. new env/global/CLI-source cases); config integration + validate files 46/47, the one failure being a pre-existing sandbox DuckDB/proxy error (INSTALL vss) that fails identically on clean upstream. Full suite: 4637 passed; the 450 failures + 273 errors are pre-existing environmental failures (DuckDB proxy, httpx proxy, network-dependent provider tests) — the closest files (anthropic provider, embedding config provider check, duckdb compaction) reproduce the exact same counts on the clean tree.