[chat] ai_interaction.py imports private _detect_provider and ANTHROPIC_MODELS from llm_core internals #730
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#730
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
src/ai_interaction.pylines 72 and 1097 import:_detect_provideris a private function (underscore-prefixed) belonging to llm_core.ANTHROPIC_MODELSis an internal constant. This is cross-feature coupling through internals.This same issue was flagged for endpoint_resolver and model_routes (#704, #703).
AGENTS.md violations
Suggested fix
_detect_provideris needed by multiple modules, promote it to a public function in a shared utility (e.g.,src/provider_detection.py)ANTHROPIC_MODELSis a shared constant, move it to a constants moduleresolve_modelfunction in llm_core or endpoint_resolver that encapsulates provider detection internally