llm/bedrock.py aktualisiert

This commit is contained in:
2026-07-05 13:01:16 +00:00
parent c7fdc6a912
commit a35c93575a
+4 -1
View File
@@ -29,7 +29,10 @@ class BedrockClient:
}
if tools and len(tools) > 0:
request["toolConfig"] = {"tools": tools}
request["toolConfig"] = {
"tools": tools,
"toolChoice": {"auto": {}} # oder "any" falls du Tool-Nutzung erzwingen willst
}
start_time = time.time()
logger.info(f"→ Bedrock Aufruf gestartet (Model: {BEDROCK_MODEL})")