Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/e2e/test-bedrock-runtime-compatible-anthropic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ for idx, char in enumerate(text):
doc = json.loads(text[idx:])
except Exception:
continue
payloads = ((doc.get("result") or {}).get("payloads") or [])
payloads = ((doc.get("result") or doc).get("payloads") or [])
parts = [p.get("text") for p in payloads if isinstance(p, dict) and isinstance(p.get("text"), str)]
print("\n".join(parts))
break
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-launchable-smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ try:
doc = json.load(sys.stdin)
except Exception:
sys.exit(0)
result = doc.get('result') or {}
result = doc.get('result') or doc
parts = []
for p in result.get('payloads') or []:
if isinstance(p, dict) and isinstance(p.get('text'), str):
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-messaging-compatible-endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ try:
doc = json.load(sys.stdin)
except Exception:
sys.exit(0)
result = doc.get('result') or {}
result = doc.get('result') or doc
parts = []
for p in result.get('payloads') or []:
if isinstance(p, dict) and isinstance(p.get('text'), str):
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-openclaw-inference-switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ try:
doc = json.load(sys.stdin)
except Exception:
sys.exit(0)
result = doc.get("result") or {}
result = doc.get("result") or doc
parts = []
for payload in result.get("payloads") or []:
if isinstance(payload, dict) and isinstance(payload.get("text"), str):
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-sandbox-operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ try:
doc = json.load(sys.stdin)
except Exception:
sys.exit(0)
result = doc.get('result') or {}
result = doc.get('result') or doc
parts = []
for p in result.get('payloads') or []:
if isinstance(p, dict) and isinstance(p.get('text'), str):
Expand Down
Loading