Repository navigation
feat(router): add --enable-wasm flag to Python CLI and Helm chart #1729
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 |
|---|---|---|
|
|
@@ -476,6 +476,7 @@ struct Router { | |
| /// New parameters MUST be appended here (not inserted mid-list) to avoid | ||
| /// breaking external Python callers that pass `_Router(...)` positionally. | ||
| drain_settle_secs: u64, | ||
| enable_wasm: bool, | ||
| } | ||
|
|
||
| impl Router { | ||
|
|
@@ -749,6 +750,7 @@ impl Router { | |
| .maybe_tool_call_parser(self.tool_call_parser.as_ref()) | ||
| .maybe_mcp_config_path(self.mcp_config_path.as_ref()) | ||
| .maybe_storage_hook_wasm_path(self.storage_hook_wasm_path.as_deref()) | ||
| .enable_wasm(self.enable_wasm) | ||
| .dp_aware(self.dp_aware) | ||
| .retries(!self.disable_retries) | ||
| .circuit_breaker(!self.disable_circuit_breaker) | ||
|
|
@@ -879,6 +881,7 @@ impl Router { | |
| mesh_peer_urls = vec![], | ||
| mesh_advertise_host = None, | ||
| drain_settle_secs = 5, | ||
| enable_wasm = false, | ||
| ))] | ||
| #[expect(clippy::too_many_arguments)] | ||
| #[expect( | ||
|
|
@@ -994,6 +997,7 @@ impl Router { | |
| mesh_peer_urls: Vec<String>, | ||
| mesh_advertise_host: Option<String>, | ||
| drain_settle_secs: u64, | ||
| enable_wasm: bool, | ||
| ) -> PyResult<Self> { | ||
| let mut all_urls = worker_urls.clone(); | ||
|
|
||
|
|
@@ -1119,6 +1123,7 @@ impl Router { | |
| mesh_port, | ||
| mesh_peer_urls, | ||
| drain_settle_secs, | ||
| enable_wasm, | ||
|
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. The parameter Please update the fn new(
// ...
drain_settle_secs: u64,
enable_wasm: bool,
) -> PyResult<Self> {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.
When building the Python bindings, this initializer now uses Useful? React with 👍 / 👎. |
||
| }) | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,6 +183,7 @@ router: | |
|
|
||
| # -- Optional features | ||
| wasm: | ||
| enabled: false | ||
| path: "" | ||
| mcp: | ||
| enabled: false | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.