Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
904730b9
"git@developer.sourcefind.cn:OpenDAS/Uni-Core.git" did not exist on "1e8b6e332ae06bc1e7a17d545c36bb583851fc36"
Unverified
Commit
904730b9
authored
Apr 29, 2025
by
Graham King
Committed by
GitHub
Apr 29, 2025
Browse files
fix(http): Make ModelDeploymentCard optional (#891)
parent
562c7f51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/llm/src/http/service/discovery.rs
lib/llm/src/http/service/discovery.rs
+10
-2
No files found.
lib/llm/src/http/service/discovery.rs
View file @
904730b9
...
@@ -248,8 +248,16 @@ async fn handle_put(
...
@@ -248,8 +248,16 @@ async fn handle_put(
// Should be impossible because we only get here on an etcd event
// Should be impossible because we only get here on an etcd event
anyhow
::
bail!
(
"Missing etcd_client"
);
anyhow
::
bail!
(
"Missing etcd_client"
);
};
};
let
mdc
=
model_entry
.load_mdc
(
endpoint_id
,
etcd_client
)
.await
?
;
let
mdc
=
match
model_entry
.load_mdc
(
endpoint_id
,
etcd_client
)
.await
{
if
mdc
.requires_preprocessing
{
Ok
(
mdc
)
=>
Some
(
mdc
),
Err
(
err
)
=>
{
// `dynamo serve` isn't using MDC yet so can't be an error
tracing
::
info!
(
%
err
,
"load_mdc did not complete"
);
None
}
};
if
mdc
.is_some
()
&&
mdc
.as_ref
()
.unwrap
()
.requires_preprocessing
{
// Note requires_preprocessing is never true in our code right now
// Note requires_preprocessing is never true in our code right now
todo!
(
"Ingress-side pre-processing not supported yet"
);
todo!
(
"Ingress-side pre-processing not supported yet"
);
}
else
{
}
else
{
...
...
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