You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move has_user_content() to a backend-neutral helpers module #1756
has_user_content() was added in #1632 to guard the OpenAI, LiteLLM, and Ollama backends against empty user content (#1597), and lives in mellea/helpers/openai_compatible_helpers.py. The #1705 fix made the HuggingFace path (mellea/backends/utils.py) the first non-OpenAI-compatible caller — the trigger #1705 flagged: "Once a non-OpenAI-compatible backend calls it, a backend-neutral helpers module is a better home."
All four callers import it through the neutral mellea.helpers package, so this is a naming/organization cleanup, not a functional change.
Suggested change
Move has_user_content() from openai_compatible_helpers.py to a backend-neutral module (e.g. mellea/helpers/chat_helpers.py)
Update the import source in mellea/helpers/__init__.py (one name moves between import blocks)
No backend changes needed — all callers import via the package
Behavior-neutral refactor. has_user_content is currently absent from mellea/helpers/__init__.py's __all__ — worth adding while moving, since it now has four internal callers.
Activity
refactor(helpers): move has_user_content() to a backend-neutral module (