Elffuss BraidHub

kikocis/continue public

remove extraneous bedrock load errors, don't force bedrock openai adapter
Changesetda2fe81442057bae0c3af827e35d21973cf9b29a66db94d5d90da87518bae42c
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-07 19:53 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-07 19:53 -07:00
Parentsc1fda47286fa

Browse the files at this changeset

2 files changed

modified core/llm/llms/Bedrock.ts +0 −2
@@ -21,7 +21,6 @@
2121 import { safeParseToolCallArgs } from "../../tools/parseArgs.js";
2222 import { renderChatMessage, stripImages } from "../../util/messageContent.js";
2323 import { BaseLLM } from "../index.js";
24-import { LlmApiRequestType } from "../openaiTypeConverters.js";
2524 import { PROVIDER_TOOL_SUPPORT } from "../toolSupport.js";
2625 import { getSecureID } from "../utils/getSecureID.js";
2726
@@ -48,7 +47,6 @@
4847 }
4948
5049 class Bedrock extends BaseLLM {
51- protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = ["*"];
5250 static providerName = "bedrock";
5351 static defaultOptions: Partial<LLMOptions> = {
5452 region: "us-east-1",
modified packages/openai-adapters/src/apis/Bedrock.ts +0 −8
@@ -60,10 +60,6 @@
6060 private _currentToolResponse: Partial<ToolUseState> | null = null;
6161
6262 constructor(protected config: BedrockConfig) {
63- if (!config.env?.region) {
64- throw new Error("region is required for Bedrock API");
65- }
66-
6763 if (config.env?.accessKeyId || config?.env?.secretAccessKey) {
6864 if (!config.env?.accessKeyId) {
6965 throw new Error(
@@ -75,10 +71,6 @@
7571 "secretAccessKey is required for Bedrock API. Only found accessKeyId",
7672 );
7773 }
78- } else if (!config.env?.profile) {
79- throw new Error(
80- "AWS credentials profile not found. Please provide accessKeyId and secretAccessKey or profile",
81- );
8274 }
8375 }
8476