feat(plugin): show routing summary in /manifest command#1080
Open
guillaumegay13 wants to merge 3 commits intomnfst:mainfrom
Open
feat(plugin): show routing summary in /manifest command#1080guillaumegay13 wants to merge 3 commits intomnfst:mainfrom
guillaumegay13 wants to merge 3 commits intomnfst:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1080 +/- ##
==========================================
+ Coverage 99.01% 99.02% +0.01%
==========================================
Files 223 223
Lines 11580 11626 +46
Branches 3650 3664 +14
==========================================
+ Hits 11466 11513 +47
Misses 22 22
+ Partials 92 91 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
I would like to enrich the result of /manifest command to show more info such as :
The plugin now reads a new OTLP-authenticated routing summary endpoint.
It's a first step towards a more broadly used manifest command that'll allow to change configurations such as switching between models.
This PR introduces only read-only changes tho.
Summary by cubic
Adds a routing summary to
/manifestshowing active providers and each tier’s effective model (auto vs override). Implements a new authenticatedGET /api/v1/routing/summaryand updates the plugin to display it with safe fallbacks.New Features
GET /api/v1/routing/summaryreturnsagentName, active providers (auth type), and tiers (simple,standard,complex,reasoning) with effectivemodel,source, andfallback_models. Only active providers are returned, sorted by provider then auth type, and missingauth_typedefaults toapi_key. Missing tiers default toautowithnullmodel, andfallback_modelsdefault to[]./manifestfetches the summary (5s timeout, Bearer fromapiKeyif set), prints “Providers” and “Routing”, formats auth types (“api key”/“subscription”), shows “unassigned” fornullmodels, strips/otlpfromendpointto derive base URL, and logs/falls back silently if the summary is unavailable.Tests
auth_type.Written for commit 508f455. Summary will update on new commits.
Related to #1081