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
67bc6a1f
Unverified
Commit
67bc6a1f
authored
Apr 16, 2026
by
MatejKosec
Committed by
GitHub
Apr 16, 2026
Browse files
fix(discovery): add missing Audios model type to is_model_type_list_empty (#8241)
Signed-off-by:
Matej Kosec
<
mkosec@nvidia.com
>
parent
63787939
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lib/llm/src/discovery/model_manager.rs
lib/llm/src/discovery/model_manager.rs
+8
-0
lib/llm/src/discovery/watcher.rs
lib/llm/src/discovery/watcher.rs
+4
-0
No files found.
lib/llm/src/discovery/model_manager.rs
View file @
67bc6a1f
...
@@ -218,6 +218,14 @@ impl ModelManager {
...
@@ -218,6 +218,14 @@ impl ModelManager {
.collect
()
.collect
()
}
}
pub
fn
list_audios_models
(
&
self
)
->
Vec
<
String
>
{
self
.models
.iter
()
.filter
(|
entry
|
entry
.value
()
.has_audios_engine
())
.map
(|
entry
|
entry
.key
()
.clone
())
.collect
()
}
pub
fn
list_videos_models
(
&
self
)
->
Vec
<
String
>
{
pub
fn
list_videos_models
(
&
self
)
->
Vec
<
String
>
{
self
.models
self
.models
.iter
()
.iter
()
...
...
lib/llm/src/discovery/watcher.rs
View file @
67bc6a1f
...
@@ -108,6 +108,8 @@ fn is_model_type_list_empty(manager: &ModelManager, model_type: ModelType) -> bo
...
@@ -108,6 +108,8 @@ fn is_model_type_list_empty(manager: &ModelManager, model_type: ModelType) -> bo
manager
.list_embeddings_models
()
.is_empty
()
manager
.list_embeddings_models
()
.is_empty
()
}
else
if
model_type
==
ModelType
::
Images
{
}
else
if
model_type
==
ModelType
::
Images
{
manager
.list_images_models
()
.is_empty
()
manager
.list_images_models
()
.is_empty
()
}
else
if
model_type
==
ModelType
::
Audios
{
manager
.list_audios_models
()
.is_empty
()
}
else
if
model_type
==
ModelType
::
Videos
{
}
else
if
model_type
==
ModelType
::
Videos
{
manager
.list_videos_models
()
.is_empty
()
manager
.list_videos_models
()
.is_empty
()
}
else
if
model_type
==
ModelType
::
TensorBased
{
}
else
if
model_type
==
ModelType
::
TensorBased
{
...
@@ -1059,6 +1061,7 @@ mod tests {
...
@@ -1059,6 +1061,7 @@ mod tests {
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Completions
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Completions
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Embedding
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Embedding
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Images
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Images
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Audios
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Videos
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Videos
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
TensorBased
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
TensorBased
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Prefill
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Prefill
));
...
@@ -1076,6 +1079,7 @@ mod tests {
...
@@ -1076,6 +1079,7 @@ mod tests {
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Completions
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Completions
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Embedding
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Embedding
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Images
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Images
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Audios
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Videos
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
Videos
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
TensorBased
));
assert
!
(
is_model_type_list_empty
(
&
mm
,
ModelType
::
TensorBased
));
}
}
...
...
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