Skip to content

Comments

fix: register groq/together/xai/mistral/deepseek providers from shorthand config keys#179

Merged
jamiepine merged 3 commits intospacedriveapp:mainfrom
Marenz:fix/deepseek-provider
Feb 23, 2026
Merged

fix: register groq/together/xai/mistral/deepseek providers from shorthand config keys#179
jamiepine merged 3 commits intospacedriveapp:mainfrom
Marenz:fix/deepseek-provider

Conversation

@Marenz
Copy link
Collaborator

@Marenz Marenz commented Feb 23, 2026

Same pattern as nvidia (#82), ollama (#175): shorthand key fields parsed and stored in `LlmConfig` but never inserted into `providers`, causing "unknown provider" at runtime.

This PR fixes all remaining unregistered providers in one go:

  • `deepseek_key` → `deepseek` (original fix)
  • `groq_key` → `groq`
  • `together_key` → `together`
  • `xai_key` → `xai`
  • `mistral_key` → `mistral`

Also adds two table-driven regression tests (`all_shorthand_keys_register_providers_via_toml` and `..._via_env`) that cover every shorthand key field — so this class of bug is caught at test time rather than at runtime.

Depends on #174.

@Marenz Marenz changed the title fix: register deepseek provider from deepseek_key config fix: register groq/together/xai/mistral/deepseek providers from shorthand config keys Feb 23, 2026
deepseek_key was parsed and stored in LlmConfig but never inserted into
the providers HashMap, causing 'unknown provider: deepseek' errors at
runtime when deepseek appeared in a fallback chain.

Same pattern as the nvidia fix (PR spacedriveapp#82) and ollama fix (PR spacedriveapp#175).
Add missing .entry() registration blocks for groq_key, together_key,
xai_key, and mistral_key in both load_from_env and from_toml paths.
Same pattern as the nvidia/ollama/deepseek fixes.

Add two table-driven regression tests that verify every shorthand key
field in LlmConfig actually registers a provider — so this class of bug
is caught at test time instead of at runtime.
@Marenz Marenz force-pushed the fix/deepseek-provider branch from 68c0bf0 to 6ded550 Compare February 23, 2026 21:48
@jamiepine jamiepine enabled auto-merge February 23, 2026 23:56
@jamiepine jamiepine merged commit 568ccb2 into spacedriveapp:main Feb 23, 2026
3 checks passed
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.

2 participants