Skip to content

Commit 93080f2

Browse files
committed
fix: formatting issues
1 parent 1f29c36 commit 93080f2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

adalflow/adalflow/components/model_client/bedrock_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ def convert_inputs_to_api_kwargs(
302302
api_kwargs = self._validate_and_process_config_keys(api_kwargs)
303303

304304
# Separate inference config and additional model request fields
305-
api_kwargs, inference_config, additional_model_request_fields = self._separate_parameters(api_kwargs)
305+
api_kwargs, inference_config, additional_model_request_fields = (
306+
self._separate_parameters(api_kwargs)
307+
)
306308

307309
api_kwargs["messages"] = [
308310
{"role": "user", "content": [{"text": input}]},

docs/source/integrations/aws_bedrock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AWS Bedrock API Client
1111
Getting Credentials
1212
-------------------
1313

14-
You need to have an AWS account and an access key and secret key to use AWS Bedrock services. Moreover, the account associated with the access key must have
14+
You need to have an AWS account and an access key and secret key to use AWS Bedrock services. Moreover, the account associated with the access key must have
1515
the necessary permissions to access Bedrock services. Refer to the `AWS documentation <https://docs.aws.amazon.com/singlesignon/latest/userguide/howtogetcredentials.html>`_ for more information on obtaining credentials.
1616

1717
Enabling Foundation Models
@@ -32,9 +32,9 @@ Steps for enabling model access:
3232
Note:
3333

3434
1. Avoid enabling high-cost models to prevent accidental high charges due to incorrect usage.
35-
2. As of Nov 2024, a cost-effective option is the Llama-3.2 1B model, with model ID: ``meta.llama3-2-1b-instruct-v1:0`` in the ``us-east-1`` region.
35+
2. As of Nov 2024, a cost-effective option is the Llama-3.2 1B model, with model ID: ``meta.llama3-2-1b-instruct-v1:0`` in the ``us-east-1`` region.
3636
3. AWS tags certain models with `inferenceTypesSupported` = `INFERENCE_PROFILE` and in UI it might appear with a tooltip as `This model can only be used through an inference profile.` In such cases you may need to use the Model ARN: ``arn:aws:bedrock:us-east-1:306093656765:inference-profile/us.meta.llama3-2-1b-instruct-v1:0`` in the model ID field when using Adalflow.
37-
4. Ensure (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME) or AWS_DEFAULT_PROFILE is set in the ``.env`` file. Mention exact key names in ``.env`` file for example access key id is ``AWS_ACCESS_KEY_ID``
37+
4. Ensure (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME) or AWS_DEFAULT_PROFILE is set in the ``.env`` file. Mention exact key names in ``.env`` file for example access key id is ``AWS_ACCESS_KEY_ID``
3838

3939
.. code-block:: python
4040

tutorials/bedrock_client_simple_qa.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from adalflow.components.model_client import BedrockAPIClient
42
from adalflow.core.types import ModelType
53
from adalflow.utils import setup_env

0 commit comments

Comments
 (0)