-
Notifications
You must be signed in to change notification settings - Fork 1
Fix deployment alias for orchestrated chat #870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2118,6 +2118,10 @@ def _require_pool_model( | |
| answering with a different pool agent hides capacity/routing mismatches. | ||
| """ | ||
| agents = getattr(orchestrator, "agents", None) or [] | ||
| if model_name == "contextual-orchestrator" and required_capability is None: | ||
| if any(not getattr(agent, "disabled", False) for agent in agents): | ||
| return model_name | ||
| raise RequestError(400, "invalid_model", "no enabled orchestration agent is available") | ||
|
Comment on lines
+2121
to
+2124
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: Alias branch correctly scoped to capability-free endpoints The alias branch at server.py fires only when Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| if model_name in {TaskOrchestrator.AUTO_MODEL, TaskOrchestrator.FREE_MODEL}: | ||
| if required_capability is None: | ||
| if model_name == TaskOrchestrator.AUTO_MODEL or any( | ||
|
Comment on lines
2125
to
2127
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: Alias requires an enabled agent unlike AUTO_MODEL The alias branch raises (Refers to this code) Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.