u
This commit is contained in:
5
x.js
5
x.js
@@ -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.)
|
||||||
|
|||||||
Reference in New Issue
Block a user