Make an asynchronous call to the AWS Bedrock API.
(self, api_kwargs: Dict = None, model_type: ModelType = None)
| 434 | raise ValueError(f"Model type {model_type} is not supported by AWS Bedrock client") |
| 435 | |
| 436 | async def acall(self, api_kwargs: Dict = None, model_type: ModelType = None) -> Any: |
| 437 | """Make an asynchronous call to the AWS Bedrock API.""" |
| 438 | # For now, just call the sync method |
| 439 | # In a real implementation, you would use an async library or run the sync method in a thread pool |
| 440 | return self.call(api_kwargs, model_type) |
| 441 | |
| 442 | def convert_inputs_to_api_kwargs( |
| 443 | self, input: Any = None, model_kwargs: Dict = None, model_type: ModelType = None |