This commit is contained in:
sebseb7
2025-10-10 05:51:03 +02:00
parent 43b8760a6e
commit 5ec9c05dca

5
x.js
View File

@@ -113,7 +113,7 @@ async function callLLMOpenAICompatible({ baseUrl, apiKey, model, system, user, t
} }
// AWS Bedrock client for Anthropic // AWS Bedrock client for Anthropic
async function callLLMBedrock({ awsAccessKey, awsSecretKey, awsRegion, model, system, user, timeoutMs = 20000 }) { async function callLLMBedrock({ awsAccessKey, awsSecretKey, awsRegion, model, system, user }) {
try { try {
const abclient = new AnthropicBedrock({ const abclient = new AnthropicBedrock({
awsAccessKey, awsAccessKey,
@@ -264,8 +264,7 @@ async function summarizeMostRecentCommitDE(webhookPayload = null) {
awsRegion, awsRegion,
model, model,
system: systemWithDiff, system: systemWithDiff,
user: prompt.user, user: prompt.user
timeoutMs: 20000
}); });
} else { } else {
// Use OpenAI-compatible API (openai, openrouter, etc.) // Use OpenAI-compatible API (openai, openrouter, etc.)