fix: Python 3.9 compatibility, CLI MEDIA tags, model switch for custom providers#13789
Open
vominh1919 wants to merge 1 commit into
Open
fix: Python 3.9 compatibility, CLI MEDIA tags, model switch for custom providers#13789vominh1919 wants to merge 1 commit into
vominh1919 wants to merge 1 commit into
Conversation
…m providers Fixes: - NousResearch#13766: CLI agents no longer emit MEDIA:/path tags (CLI has no attachment channel) - NousResearch#13765: Add 'from __future__ import annotations' to 64 files for Python 3.9 PEP-604 compatibility - NousResearch#13764: Model switch now searches custom_providers catalog before API probe Changes: - agent/prompt_builder.py: Extend CLI platform hint to prevent MEDIA: tag emission - cli.py: Load custom_providers unconditionally (not just for picker) - hermes_cli/model_switch.py: Add _find_model_in_custom_providers() helper, insert step c2 in PATH B - hermes_cli/models.py: normalize_provider() handles custom:* slugs - 64 files: Add 'from __future__ import annotations' for Python 3.9 compatibility
7 tasks
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.
Fixes
MEDIA:/pathtags (CLI has no attachment channel)from __future__ import annotationsto 64 files for Python 3.9 PEP-604 compatibilityChanges
Issue #13766 - CLI MEDIA tags
agent/prompt_builder.py: Extend CLI platform hint to prevent MEDIA: tag emissionIssue #13765 - Python 3.9 compatibility
from __future__ import annotationsfor Python 3.9 PEP-604 syntax support/modelcommand when system Python is 3.9Issue #13764 - Model switch custom providers
cli.py: Loadcustom_providersunconditionally (not just for picker)hermes_cli/model_switch.py:_find_model_in_custom_providers()helper functionis_customguard to covercustom:*slugshermes_cli/models.py:normalize_provider()handlescustom:*slugsTesting
/modelcommand: now works with bare model names on custom providers