[llm] Promote private llm_core exports to public API (#730) #846

Closed
sleepy wants to merge 0 commits from fix/public-llm-exports-730 into main
Owner

Summary

Fixes #730.

Rename _detect_providerdetect_provider in src/llm_core.py and update all importers:

  • src/ai_interaction.py (2 import sites + 2 usage sites)
  • src/endpoint_resolver.py (1 import + 3 usage sites)
  • routes/model_routes.py (1 import + 6 usage sites)
  • tests/test_llm_core_ollama.py (2 assertions)

ANTHROPIC_MODELS was already public (no underscore prefix) and is unchanged.

Test plan

  • All 529 passing tests continue to pass
  • Pre-existing failures (calendar_owner_scope, mark_stopped, task_scheduler) are unrelated
## Summary Fixes #730. Rename `_detect_provider` → `detect_provider` in `src/llm_core.py` and update all importers: - `src/ai_interaction.py` (2 import sites + 2 usage sites) - `src/endpoint_resolver.py` (1 import + 3 usage sites) - `routes/model_routes.py` (1 import + 6 usage sites) - `tests/test_llm_core_ollama.py` (2 assertions) `ANTHROPIC_MODELS` was already public (no underscore prefix) and is unchanged. ### Test plan - All 529 passing tests continue to pass - Pre-existing failures (calendar_owner_scope, mark_stopped, task_scheduler) are unrelated
Rename _detect_provider → detect_provider in llm_core.py and update all
importers (ai_interaction.py, endpoint_resolver.py, model_routes.py,
test_llm_core_ollama.py). ANTHROPIC_MODELS was already public (no
underscore prefix) and is unchanged.
sleepy closed this pull request 2026-06-04 11:42:21 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.