Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(jan): map runtime capabilities - #221

Merged
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
Deepnar:fix/jan-capability-mapping
Aug 31, 2026
Merged

fix(jan): map runtime capabilities#221
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
Deepnar:fix/jan-capability-mapping

Conversation

@Deepnar

@Deepnar Deepnar commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a pure Jan capability-normalization helper and focused unit coverage for issue #27.

Changes

  • Map Jan capability values completion, chat, embeddings, vision, reasoning, and tools to the existing ModelDock Capability enum.
  • Normalize case and surrounding whitespace.
  • Preserve first-seen order and deduplicate values.
  • Ignore missing, malformed, non-string, and unknown values without raising.
  • Keep the change adapter-local; no domain, core, ports, CLI, public API, or dependency changes.
  • Leave Jan model discovery/filtering to the separate Jan AI: implement runtime adapter #25/Jan AI: read local model directory #26 work because this issue does not yet have a metadata source.

Testing

  • uv run --extra dev pytest tests/unit/test_jan_runtime.py -q — 13 passed
  • uv run --extra dev ruff check src tests — passed
  • uv run --extra dev ruff format --check src tests — passed
  • uv run --extra dev mypy src — passed for 79 source files
  • git diff --check — passed
  • Full suite independently recorded as 551 passed; three local offline CLI fixture failures were unrelated to this change.

Checklist

  • Branch named per Git Workflow (fix/jan-capability-mapping)
  • Not developed on main
  • Code follows AGENT.md coding standards
  • domain/ and ports/ stay pure
  • Quality gates pass locally: Ruff, mypy, targeted pytest, and diff check
  • No docs or version changes were needed
  • No secrets or generated artifacts included

Closes #27.

@himanshu231204
himanshu231204 merged commit 02a5586 into OpenAgentHQ:main Aug 31, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @Deepnar!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

🌟 This is your first merged contribution to this repository.
Welcome to the OpenAgentHQ contributors family!

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.

Jan AI: align capability detection

2 participants