mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-28 19:14:53 +00:00
fix(core): shorten Bedrock profile picker copy (#54055)
This commit is contained in:
parent
eefe85d257
commit
d2d50aaae1
1 changed files with 2 additions and 5 deletions
|
|
@ -45,9 +45,6 @@ export const AmazonBedrockPlugin = define({
|
|||
)
|
||||
.filter(Boolean)
|
||||
.toSorted()
|
||||
const sources = paths
|
||||
.map((file) => (file.startsWith(Global.Path.home + path.sep) ? `~${file.slice(Global.Path.home.length)}` : file))
|
||||
.join(" and ")
|
||||
yield* ctx.integration.transform((editor) => {
|
||||
// models.dev advertises AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and
|
||||
// AWS_REGION alongside the bearer token. Only the bearer token is a key;
|
||||
|
|
@ -72,8 +69,8 @@ export const AmazonBedrockPlugin = define({
|
|||
type: "string",
|
||||
title: "AWS profile",
|
||||
description: profiles.length
|
||||
? `Found ${profiles.length} profile${profiles.length === 1 ? "" : "s"} in ${sources} on the server.`
|
||||
: `No AWS profiles found in ${sources} on the server.`,
|
||||
? `Found ${profiles.length} profile${profiles.length === 1 ? "" : "s"} in your AWS configuration.`
|
||||
: "No profiles found in your AWS configuration.",
|
||||
required: true,
|
||||
minLength: 1,
|
||||
pattern: "\\S",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue