Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
73dc3be8
Unverified
Commit
73dc3be8
authored
Feb 11, 2026
by
Graham King
Committed by
GitHub
Feb 11, 2026
Browse files
chore: Merge bindings client and client2 functions (#6158)
Signed-off-by:
Graham King
<
grahamk@nvidia.com
>
parent
f46720c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
components/src/dynamo/frontend/vllm_processor.py
components/src/dynamo/frontend/vllm_processor.py
+3
-1
lib/bindings/python/rust/lib.rs
lib/bindings/python/rust/lib.rs
+7
-5
lib/bindings/python/src/dynamo/_core.pyi
lib/bindings/python/src/dynamo/_core.pyi
+3
-8
No files found.
components/src/dynamo/frontend/vllm_processor.py
View file @
73dc3be8
...
@@ -448,7 +448,9 @@ class EngineFactory:
...
@@ -448,7 +448,9 @@ class EngineFactory:
kv_router_config
=
self
.
router_config
.
kv_router_config
,
kv_router_config
=
self
.
router_config
.
kv_router_config
,
)
)
else
:
else
:
router
=
await
generate_endpoint
.
client2
(
self
.
router_config
.
router_mode
)
router
=
await
generate_endpoint
.
client
(
router_mode
=
self
.
router_config
.
router_mode
)
gen
=
VllmProcessor
(
gen
=
VllmProcessor
(
tokenizer
,
tokenizer
,
...
...
lib/bindings/python/rust/lib.rs
View file @
73dc3be8
...
@@ -835,11 +835,13 @@ impl Endpoint {
...
@@ -835,11 +835,13 @@ impl Endpoint {
})
})
}
}
fn
client
<
'p
>
(
&
self
,
py
:
Python
<
'p
>
)
->
PyResult
<
Bound
<
'p
,
PyAny
>>
{
#[pyo3(signature
=
(router_mode
=
None))]
self
.client2
(
py
,
RouterMode
::
RoundRobin
)
fn
client
<
'p
>
(
}
&
self
,
py
:
Python
<
'p
>
,
fn
client2
<
'p
>
(
&
self
,
py
:
Python
<
'p
>
,
router_mode
:
RouterMode
)
->
PyResult
<
Bound
<
'p
,
PyAny
>>
{
router_mode
:
Option
<
RouterMode
>
,
)
->
PyResult
<
Bound
<
'p
,
PyAny
>>
{
let
router_mode
=
router_mode
.unwrap_or
(
RouterMode
::
RoundRobin
);
let
inner
=
self
.inner
.clone
();
let
inner
=
self
.inner
.clone
();
pyo3_async_runtimes
::
tokio
::
future_into_py
(
py
,
async
move
{
pyo3_async_runtimes
::
tokio
::
future_into_py
(
py
,
async
move
{
let
client
=
inner
.client
()
.await
.map_err
(
to_pyerr
)
?
;
let
client
=
inner
.client
()
.await
.map_err
(
to_pyerr
)
?
;
...
...
lib/bindings/python/src/dynamo/_core.pyi
View file @
73dc3be8
...
@@ -164,16 +164,11 @@ class Endpoint:
...
@@ -164,16 +164,11 @@ class Endpoint:
"""
"""
...
...
async def client(self) -> Client:
async def client(self
, router_mode: Optional[RouterMode] = None
) -> Client:
"""
"""
Create a `Client` capable of calling served instances of this endpoint using round-robin routing.
Create a `Client` capable of calling served instances of this endpoint.
"""
...
async def client2(self, router_mode: RouterMode) -> Client:
By default this uses round-robin routing when `router_mode` is not provided.
"""
Create a `Client` capable of calling served instances of this endpoint, using a specific
router mode (random, round-robin, kv).
"""
"""
...
...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment