Fix ai-service Dockerfile: bake in drug_entities.json, override its path
This commit is contained in:
@@ -72,7 +72,12 @@ class BedrockClaudeAnswerGenerator:
|
||||
if self._client is None:
|
||||
from anthropic import AnthropicBedrockMantle
|
||||
|
||||
self._client = AnthropicBedrockMantle(aws_region=self._region)
|
||||
# max_retries: the SDK's own default (2) is lower than the retry
|
||||
# budget given the other Bedrock adapters (bedrock_converse.py,
|
||||
# embedding.py) after a real throttling burst measured live
|
||||
# 2026-08-07 — matched here for consistency, in case this
|
||||
# provider is ever selected instead of bedrock-converse.
|
||||
self._client = AnthropicBedrockMantle(aws_region=self._region, max_retries=4)
|
||||
return self._client
|
||||
|
||||
def generate(self, system: str, user: str, schema: dict) -> str:
|
||||
|
||||
Reference in New Issue
Block a user