fix(onboard): infer custom model image input

This commit is contained in:
Peter Steinberger
2026-04-28 06:33:02 +01:00
parent d48c3e12a5
commit 5916237962
14 changed files with 322 additions and 7 deletions

View File

@@ -144,6 +144,8 @@ export function registerOnboardCommand(program: Command) {
"--custom-compatibility <mode>",
"Custom provider API compatibility: openai|anthropic (default: openai)",
)
.option("--custom-image-input", "Mark the custom provider model as image-capable")
.option("--custom-text-input", "Mark the custom provider model as text-only")
.option("--gateway-port <port>", "Gateway port")
.option("--gateway-bind <mode>", "Gateway bind: loopback|tailnet|lan|auto|custom")
.option("--gateway-auth <mode>", "Gateway auth: token|password")
@@ -214,6 +216,12 @@ export function registerOnboardCommand(program: Command) {
customModelId: opts.customModelId as string | undefined,
customProviderId: opts.customProviderId as string | undefined,
customCompatibility: opts.customCompatibility as "openai" | "anthropic" | undefined,
customImageInput:
opts.customTextInput === true
? false
: opts.customImageInput === true
? true
: undefined,
gatewayPort:
typeof gatewayPort === "number" && Number.isFinite(gatewayPort)
? gatewayPort