mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-05 12:10:52 +02:00
allow creating basic inference resource
This commit is contained in:
@@ -164,7 +164,10 @@ const createSiteResourceSchema = z
|
||||
.refine(
|
||||
(data) => {
|
||||
// destination is only optional for ssh mode with native authDaemonMode
|
||||
if (data.mode === "ssh" && data.authDaemonMode === "native") {
|
||||
if (
|
||||
(data.mode === "ssh" && data.authDaemonMode === "native") ||
|
||||
data.mode == "inference"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user