enhance Kiro profile ARN resolution
This commit is contained in:
@@ -9,7 +9,8 @@ import {
|
||||
resolveKiroModel,
|
||||
isThinkingEnabled,
|
||||
buildThinkingSystemPrefix,
|
||||
KIRO_AGENTIC_SYSTEM_PROMPT
|
||||
KIRO_AGENTIC_SYSTEM_PROMPT,
|
||||
resolveDefaultProfileArn
|
||||
} from "../../config/kiroConstants.js";
|
||||
|
||||
/** Render a single tool call as a readable text line. */
|
||||
@@ -520,7 +521,8 @@ export function buildKiroPayload(model, body, stream, credentials) {
|
||||
|
||||
const { history, currentMessage } = convertMessages(messages, tools, upstreamModel);
|
||||
|
||||
const profileArn = credentials?.providerSpecificData?.profileArn || "";
|
||||
const profileArn = credentials?.providerSpecificData?.profileArn
|
||||
|| resolveDefaultProfileArn(credentials?.providerSpecificData?.authMethod);
|
||||
|
||||
let finalContent = currentMessage?.userInputMessage?.content || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user