diff --git a/docker/.env.example b/docker/.env.example index 125a85a1..90d9c96e 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -115,6 +115,9 @@ GID='1000' # AWS_BEDROCK_LLM_CONNECTION_METHOD=iam # AWS_BEDROCK_LLM_MAX_OUTPUT_TOKENS=4096 # AWS_BEDROCK_LLM_SESSION_TOKEN= # Only required if CONNECTION_METHOD is 'sessionToken' +# or even use Short and Long Term API keys +# AWS_BEDROCK_LLM_CONNECTION_METHOD="apiKey" +# AWS_BEDROCK_LLM_API_KEY= # LLM_PROVIDER='fireworksai' # FIREWORKS_AI_LLM_API_KEY='my-fireworks-ai-key' diff --git a/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx b/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx index a8f19fb8..31aa2850 100644 --- a/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx @@ -7,10 +7,9 @@ export default function AwsBedrockLLMOptions({ settings }) { settings?.AwsBedrockLLMConnectionMethod ?? "iam" ); - console.log("connectionMethod", connectionMethod); return (
- {!settings?.credentialsOnly && ( + {!settings?.credentialsOnly && connectionMethod !== "apiKey" && (
@@ -21,6 +20,7 @@ export default function AwsBedrockLLMOptions({ settings }) { href="https://docs.anythingllm.com/setup/llm-configuration/cloud/aws-bedrock" target="_blank" className="underline flex gap-x-1 items-center" + rel="noreferrer" > Read more on how to use AWS Bedrock in AnythingLLM @@ -38,7 +38,7 @@ export default function AwsBedrockLLMOptions({ settings }) { />

Select the method to authenticate with AWS Bedrock. @@ -56,6 +56,7 @@ export default function AwsBedrockLLMOptions({ settings }) { Session Token (Temporary Credentials) +

@@ -117,6 +118,23 @@ export default function AwsBedrockLLMOptions({ settings }) { />
)} + {connectionMethod === "apiKey" && ( +
+ + +
+ )}