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
4e47903b
Unverified
Commit
4e47903b
authored
May 29, 2025
by
jthomson04
Committed by
GitHub
May 29, 2025
Browse files
fix: Only check model name on etcd-registered endpoints (#1263)
parent
fb4bf252
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/llm/src/local_model.rs
lib/llm/src/local_model.rs
+5
-3
No files found.
lib/llm/src/local_model.rs
View file @
4e47903b
...
...
@@ -184,11 +184,13 @@ impl LocalModel {
};
for
endpoint_info
in
component
.list_instances
()
.await
?
{
let
network_name
:
ModelNetworkName
=
(
&
endpoint_info
)
.into
();
let
entry
=
network_name
.load_entry
(
&
etcd_client
)
.await
?
;
if
let
Ok
(
entry
)
=
network_name
.load_entry
(
&
etcd_client
)
.await
{
if
entry
.name
!=
model_name
{
anyhow
::
bail!
(
"Duplicate component. Attempt to register model {model_name} at {component}, which is already used by {network_name} running model {}."
,
entry
.name
);
}
}
}
Ok
(())
}
}
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