Changesets · Branches · Tags · Compare
| Changeset | da2fe81442057bae0c3af827e35d21973cf9b29a66db94d5d90da87518bae42c |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 19:53 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 19:53 -07:00 |
| Parents | c1fda47286fa |
2 files changed
modified core/llm/llms/Bedrock.ts +0 −2
| @@ -21,7 +21,6 @@ | ||
| 21 | 21 | import { safeParseToolCallArgs } from "../../tools/parseArgs.js"; |
| 22 | 22 | import { renderChatMessage, stripImages } from "../../util/messageContent.js"; |
| 23 | 23 | import { BaseLLM } from "../index.js"; |
| 24 | -import { LlmApiRequestType } from "../openaiTypeConverters.js"; | |
| 25 | 24 | import { PROVIDER_TOOL_SUPPORT } from "../toolSupport.js"; |
| 26 | 25 | import { getSecureID } from "../utils/getSecureID.js"; |
| 27 | 26 | |
| @@ -48,7 +47,6 @@ | ||
| 48 | 47 | } |
| 49 | 48 | |
| 50 | 49 | class Bedrock extends BaseLLM { |
| 51 | - protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = ["*"]; | |
| 52 | 50 | static providerName = "bedrock"; |
| 53 | 51 | static defaultOptions: Partial<LLMOptions> = { |
| 54 | 52 | region: "us-east-1", |
modified packages/openai-adapters/src/apis/Bedrock.ts +0 −8
| @@ -60,10 +60,6 @@ | ||
| 60 | 60 | private _currentToolResponse: Partial<ToolUseState> | null = null; |
| 61 | 61 | |
| 62 | 62 | constructor(protected config: BedrockConfig) { |
| 63 | - if (!config.env?.region) { | |
| 64 | - throw new Error("region is required for Bedrock API"); | |
| 65 | - } | |
| 66 | - | |
| 67 | 63 | if (config.env?.accessKeyId || config?.env?.secretAccessKey) { |
| 68 | 64 | if (!config.env?.accessKeyId) { |
| 69 | 65 | throw new Error( |
| @@ -75,10 +71,6 @@ | ||
| 75 | 71 | "secretAccessKey is required for Bedrock API. Only found accessKeyId", |
| 76 | 72 | ); |
| 77 | 73 | } |
| 78 | - } else if (!config.env?.profile) { | |
| 79 | - throw new Error( | |
| 80 | - "AWS credentials profile not found. Please provide accessKeyId and secretAccessKey or profile", | |
| 81 | - ); | |
| 82 | 74 | } |
| 83 | 75 | } |
| 84 | 76 |