mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 01:28:14 +00:00
Fix #2688: Add operation_name parameter to AWS Bedrock embedder configuration
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -156,7 +156,7 @@ class EmbeddingConfigurator:
|
||||
)
|
||||
|
||||
# Allow custom model_name override with backwards compatibility
|
||||
kwargs = {"session": config.get("session")}
|
||||
kwargs = {"session": config.get("session"), "operation_name": "InvokeModel"}
|
||||
if model_name is not None:
|
||||
kwargs["model_name"] = model_name
|
||||
return AmazonBedrockEmbeddingFunction(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user