Skip to content

Commit c0dc3b3

Browse files
committed
refactor: simplify foundry onboard prompts
1 parent 5d1f1d9 commit c0dc3b3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

extensions/microsoft-foundry/onboard.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async function promptEndpointAndModelBase(
246246
modelInitialValue?: string;
247247
},
248248
): Promise<FoundrySelection> {
249-
const endpoint = String(
249+
const endpoint = (
250250
await ctx.prompter.text({
251251
message: "Microsoft Foundry endpoint URL",
252252
placeholder: "https://xxx.openai.azure.com or https://xxx.services.ai.azure.com",
@@ -263,9 +263,9 @@ async function promptEndpointAndModelBase(
263263
}
264264
return undefined;
265265
},
266-
}),
266+
})
267267
).trim();
268-
const modelId = String(
268+
const modelId = (
269269
await ctx.prompter.text({
270270
message: "Default model/deployment name",
271271
...(options?.modelInitialValue ? { initialValue: options.modelInitialValue } : {}),
@@ -277,7 +277,7 @@ async function promptEndpointAndModelBase(
277277
}
278278
return undefined;
279279
},
280-
}),
280+
})
281281
).trim();
282282
const familyChoice = await promptFoundryModelFamily(ctx);
283283
const resolvedModelName =
@@ -403,7 +403,7 @@ export async function promptTenantId(
403403
"Azure Tenant",
404404
);
405405
}
406-
const tenantId = String(
406+
const tenantId = (
407407
await ctx.prompter.text({
408408
message: params?.required ? "Azure tenant ID" : "Azure tenant ID (optional)",
409409
placeholder: params?.suggestions?.[0]?.id ?? "00000000-0000-0000-0000-000000000000",
@@ -416,7 +416,7 @@ export async function promptTenantId(
416416
? undefined
417417
: "Enter a valid tenant ID or tenant domain";
418418
},
419-
}),
419+
})
420420
).trim();
421421
return tenantId || undefined;
422422
}

0 commit comments

Comments
 (0)