Skip to content

feat(aws-bedrock-mantle): update model YAMLs [bot] - #2115

Closed
models-bot[bot] wants to merge 2 commits into
mainfrom
bot/update-aws-bedrock-mantle-20260811-053521
Closed

feat(aws-bedrock-mantle): update model YAMLs [bot]#2115
models-bot[bot] wants to merge 2 commits into
mainfrom
bot/update-aws-bedrock-mantle-20260811-053521

Conversation

@models-bot

@models-bot models-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Auto-generated by poc-agent for provider aws-bedrock-mantle.


Note

Low Risk
Metadata-only provider catalog changes; incorrect tiers could affect cost estimates but no runtime or security impact.

Overview
Updates aws-bedrock-mantle catalog YAML for openai.gpt-5.6-luna, openai.gpt-5.6-sol, and openai.gpt-5.6-terra to reflect larger context and token-tier pricing.

Limits: context_window rises from 272k to 1M on all three. Luna also adds max_input_tokens (922k), max_output_tokens, and max_tokens (128k). Terra drops the previous max_input_tokens: 272000 cap while keeping 128k output limits.

Costs: Each regional cost block gains tiered_pricing with pricing_mode: cumulative—higher per-token rates for input, output, cache read, and cache write starting at 272000 (luna/terra) or 272001 (sol). Sol also nudges base cache_creation_input_token_cost from 0.00000688 to 0.000006875.

Reviewed by Cursor Bugbot for commit d140429. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 32
  • Passed: 0
  • Failed: 32
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 0.0%
Provider Model Scenarios
aws-bedrock-mantle openai.gpt-5.6-luna failure: structured-output:stream, parallel-tool-call:stream, structured-output, params, tool-call:stream, params:stream, parallel-tool-call, reasoning:stream, json-output, reasoning, json-output:stream, tool-call
aws-bedrock-mantle openai.gpt-5.6-sol failure: tool-call, structured-output:stream, tool-call:stream, params:stream, params, reasoning, structured-output, reasoning:stream
aws-bedrock-mantle openai.gpt-5.6-terra failure: tool-call:stream, json-output, reasoning, params:stream, parallel-tool-call, parallel-tool-call:stream, json-output:stream, reasoning:stream, structured-output:stream, structured-output, tool-call, params
Failures (32)

aws-bedrock-mantle/openai.gpt-5.6-sol — tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpvm64h7jm/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=False,
)
_tool_calls = [_item for _item in response.output if _item.type == "function_call"]

if not _tool_calls:
    print(response.output_text)
    print(f"Tools sent: {len(response.tools)}, tool_choice: {response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"Function: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("VALIDATION: tool-call SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-sol — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp0gfemd_c/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=True,
)
import json as _json

_accumulated = ""
for event in response:
    if event.type == "response.output_text.delta":
        _accumulated += event.delta
        print(event.delta, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: structured-output stream - no content received")

_parsed = _json.loads(_accumulated)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output stream - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output stream - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output stream - unexpected keys present: {set(_parsed.keys())}"
    )

print("\nVALIDATION: structured-output stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-sol — tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpkid_g9yo/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no completed response received"
    )

_tool_calls = [_item for _item in _completed_response.output if _item.type == "function_call"]

if not _tool_calls:
    print(_completed_response.output_text)
    print(f"Tools sent: {len(_completed_response.tools)}, tool_choice: {_completed_response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"\nFunction: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("\nVALIDATION: tool-call stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-sol — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp3_n9m2hx/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
)

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)

aws-bedrock-mantle/openai.gpt-5.6-sol — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp9f9f8rw2/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=False,
)

print(response.output_text)

aws-bedrock-mantle/openai.gpt-5.6-sol — reasoning (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpb9ull5c3/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=False,
)
_reasoning_items = [
    _item for _item in (getattr(response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if response.output_text:
    print(response.output_text)

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning - no reasoning output items or reasoning tokens in response"
    )

print("VALIDATION: reasoning SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-sol — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpikndeksk/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=False,
)
import json as _json

_content = response.output_text
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: structured-output - response content is empty")

_parsed = _json.loads(_content)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output - unexpected keys present: {set(_parsed.keys())}"
    )

print("VALIDATION: structured-output SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-sol — reasoning:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp_83adgyb/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-sol",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no completed response received"
    )

_reasoning_items = [
    _item for _item in (getattr(_completed_response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(_completed_response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no reasoning output items or reasoning tokens in response"
    )

print("\nVALIDATION: reasoning stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpjvs3wub8/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no completed response received"
    )

_tool_calls = [_item for _item in _completed_response.output if _item.type == "function_call"]

if not _tool_calls:
    print(_completed_response.output_text)
    print(f"Tools sent: {len(_completed_response.tools)}, tool_choice: {_completed_response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"\nFunction: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("\nVALIDATION: tool-call stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpmzpasbcd/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    text={"format": {"type": "json_object"}},
    stream=False,
)
import json as _json

_content = response.output_text
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: json-output - response content is empty")

_json.loads(_content)
print("VALIDATION: json-output SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — reasoning (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmps4aad1dc/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=False,
)
_reasoning_items = [
    _item for _item in (getattr(response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if response.output_text:
    print(response.output_text)

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning - no reasoning output items or reasoning tokens in response"
    )

print("VALIDATION: reasoning SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpyqzrkpmt/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
)

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)

aws-bedrock-mantle/openai.gpt-5.6-terra — parallel-tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpux6xsemv/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London and Paris. You MUST make both tool calls strictly in parallel, not sequentially."},
    ],
    tools=tools,
    tool_choice="auto",
    parallel_tool_calls=True,
    stream=False,
)
_tool_calls = [_item for _item in response.output if _item.type == "function_call"]

if len(_tool_calls) < 1:
    print(response.output_text)
    print(f"Tools sent: {len(response.tools)}, tool_choice: {response.tool_choice}")
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call - expected at least 1 tool call, "
        f"got {len(_tool_calls)}"
    )

for _tc in _tool_calls:
    print(f"Function: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("VALIDATION: parallel-tool-call SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — parallel-tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp2fbt7gv2/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London and Paris. You MUST make both tool calls strictly in parallel, not sequentially."},
    ],
    tools=tools,
    tool_choice="auto",
    parallel_tool_calls=True,
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: parallel-tool-call stream - no completed response received"
    )

_tool_calls = [_item for _item in _completed_response.output if _item.type == "function_call"]

if len(_tool_calls) < 1:
    print(_completed_response.output_text)
    print(f"Tools sent: {len(_completed_response.tools)}, tool_choice: {_completed_response.tool_choice}")
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call stream - expected at least 1 tool call, "
        f"got {len(_tool_calls)}"
    )

for _tc in _tool_calls:
    print(f"\nFunction: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("\nVALIDATION: parallel-tool-call stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — json-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp_4v2esvx/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    text={"format": {"type": "json_object"}},
    stream=True,
)
import json as _json

_accumulated = ""
for event in response:
    if event.type == "response.output_text.delta":
        _accumulated += event.delta
        print(event.delta, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: json-output stream - no content received")

_json.loads(_accumulated)
print("\nVALIDATION: json-output stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — reasoning:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpk9o_34_j/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no completed response received"
    )

_reasoning_items = [
    _item for _item in (getattr(_completed_response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(_completed_response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no reasoning output items or reasoning tokens in response"
    )

print("\nVALIDATION: reasoning stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpqq9m6hht/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=True,
)
import json as _json

_accumulated = ""
for event in response:
    if event.type == "response.output_text.delta":
        _accumulated += event.delta
        print(event.delta, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: structured-output stream - no content received")

_parsed = _json.loads(_accumulated)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output stream - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output stream - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output stream - unexpected keys present: {set(_parsed.keys())}"
    )

print("\nVALIDATION: structured-output stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp59ah0302/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=False,
)
import json as _json

_content = response.output_text
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: structured-output - response content is empty")

_parsed = _json.loads(_content)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output - unexpected keys present: {set(_parsed.keys())}"
    )

print("VALIDATION: structured-output SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpzb_npa7_/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=False,
)
_tool_calls = [_item for _item in response.output if _item.type == "function_call"]

if not _tool_calls:
    print(response.output_text)
    print(f"Tools sent: {len(response.tools)}, tool_choice: {response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"Function: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("VALIDATION: tool-call SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-terra — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpjzswsf6r/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-terra",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=False,
)

print(response.output_text)

aws-bedrock-mantle/openai.gpt-5.6-luna — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpe6n1expv/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=True,
)
import json as _json

_accumulated = ""
for event in response:
    if event.type == "response.output_text.delta":
        _accumulated += event.delta
        print(event.delta, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: structured-output stream - no content received")

_parsed = _json.loads(_accumulated)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output stream - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output stream - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output stream - unexpected keys present: {set(_parsed.keys())}"
    )

print("\nVALIDATION: structured-output stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — parallel-tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmplset9tab/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London and Paris. You MUST make both tool calls strictly in parallel, not sequentially."},
    ],
    tools=tools,
    tool_choice="auto",
    parallel_tool_calls=True,
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: parallel-tool-call stream - no completed response received"
    )

_tool_calls = [_item for _item in _completed_response.output if _item.type == "function_call"]

if len(_tool_calls) < 1:
    print(_completed_response.output_text)
    print(f"Tools sent: {len(_completed_response.tools)}, tool_choice: {_completed_response.tool_choice}")
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call stream - expected at least 1 tool call, "
        f"got {len(_tool_calls)}"
    )

for _tc in _tool_calls:
    print(f"\nFunction: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("\nVALIDATION: parallel-tool-call stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmppdupwuhf/snippet.py", line 21, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI
import json

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response_schema = json.loads('''{
  "title": "CalendarEvent",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "date": { "type": "string" },
    "participants": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["name", "date", "participants"],
  "additionalProperties": false
}''')

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    text={"format": {"type": "json_schema", "name": "CalendarEvent", "strict": True, "schema": response_schema}},
    stream=False,
)
import json as _json

_content = response.output_text
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: structured-output - response content is empty")

_parsed = _json.loads(_content)

if "name" not in _parsed or "date" not in _parsed or "participants" not in _parsed:
    raise Exception("VALIDATION FAILED: structured-output - missing expected fields (name, date, participants)")

if not isinstance(_parsed.get("participants"), list):
    raise Exception("VALIDATION FAILED: structured-output - 'participants' is not a list, schema not enforced")

if set(_parsed.keys()) != {"name", "date", "participants"}:
    raise Exception(
        f"VALIDATION FAILED: structured-output - unexpected keys present: {set(_parsed.keys())}"
    )

print("VALIDATION: structured-output SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp6q631fws/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=False,
)

print(response.output_text)

aws-bedrock-mantle/openai.gpt-5.6-luna — tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpk_w8zt3r/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no completed response received"
    )

_tool_calls = [_item for _item in _completed_response.output if _item.type == "function_call"]

if not _tool_calls:
    print(_completed_response.output_text)
    print(f"Tools sent: {len(_completed_response.tools)}, tool_choice: {_completed_response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call stream - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"\nFunction: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("\nVALIDATION: tool-call stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp8uqfy0r4/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
)

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)

aws-bedrock-mantle/openai.gpt-5.6-luna — parallel-tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpd88r6b07/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London and Paris. You MUST make both tool calls strictly in parallel, not sequentially."},
    ],
    tools=tools,
    tool_choice="auto",
    parallel_tool_calls=True,
    stream=False,
)
_tool_calls = [_item for _item in response.output if _item.type == "function_call"]

if len(_tool_calls) < 1:
    print(response.output_text)
    print(f"Tools sent: {len(response.tools)}, tool_choice: {response.tool_choice}")
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call - expected at least 1 tool call, "
        f"got {len(_tool_calls)}"
    )

for _tc in _tool_calls:
    print(f"Function: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("VALIDATION: parallel-tool-call SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — reasoning:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpwez48uue/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=True,
)
_completed_response = None

for event in response:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)
    if event.type == "response.completed":
        _completed_response = event.response

if _completed_response is None:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no completed response received"
    )

_reasoning_items = [
    _item for _item in (getattr(_completed_response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(_completed_response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning stream - no reasoning output items or reasoning tokens in response"
    )

print("\nVALIDATION: reasoning stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpfo08syf8/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    text={"format": {"type": "json_object"}},
    stream=False,
)
import json as _json

_content = response.output_text
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: json-output - response content is empty")

_json.loads(_content)
print("VALIDATION: json-output SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — reasoning (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpz59yvad1/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning={"effort": "medium"},
    stream=False,
)
_reasoning_items = [
    _item for _item in (getattr(response, "output", None) or [])
    if getattr(_item, "type", None) == "reasoning"
]
_usage = getattr(response, "usage", None)
_details = getattr(_usage, "output_tokens_details", None) if _usage else None
_reasoning_tokens = getattr(_details, "reasoning_tokens", 0) if _details else 0

if response.output_text:
    print(response.output_text)

if not _reasoning_items and not _reasoning_tokens:
    raise Exception(
        "VALIDATION FAILED: reasoning - no reasoning output items or reasoning tokens in response"
    )

print("VALIDATION: reasoning SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — json-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpm4ysw3qx/snippet.py", line 5, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    text={"format": {"type": "json_object"}},
    stream=True,
)
import json as _json

_accumulated = ""
for event in response:
    if event.type == "response.output_text.delta":
        _accumulated += event.delta
        print(event.delta, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: json-output stream - no content received")

_json.loads(_accumulated)
print("\nVALIDATION: json-output stream SUCCESS")

aws-bedrock-mantle/openai.gpt-5.6-luna — tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpqx6qtfwi/snippet.py", line 25, in <module>
    response = client.responses.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/responses/responses.py", line 828, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'status': 'failure', 'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'error': {'message': 'aws-bedrock-mantle error: The security token included in the request is invalid.', 'type': 'APIError', 'code': '401'}, 'error_origin_level': 'api_error', 'provider': 'aws-bedrock-mantle'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

tools = [
    {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather for a location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city name, e.g. London",
                },
            },
            "required": ["location"],
            "additionalProperties": False,
        },
        "strict": True,
    },
]

response = client.responses.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    input=[
        {"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
    ],
    tools=tools,
    tool_choice="auto",
    stream=False,
)
_tool_calls = [_item for _item in response.output if _item.type == "function_call"]

if not _tool_calls:
    print(response.output_text)
    print(f"Tools sent: {len(response.tools)}, tool_choice: {response.tool_choice}")
    raise Exception(
        "VALIDATION FAILED: tool-call - no tool calls in response"
    )

for _tc in _tool_calls:
    print(f"Function: {_tc.name}")
    print(f"Arguments: {_tc.arguments}")

print("VALIDATION: tool-call SUCCESS")

Comment thread providers/aws-bedrock-mantle/openai.gpt-5.6-luna.yaml
from: 272001
output:
- cost_per_token: 0.0000495
from: 272001

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mismatched Sol pricing tier threshold

Low Severity

Sol’s new tiered_pricing uses from: 272001, but Luna and Terra in this same update use from: 272000, matching the other GPT-5.6 provider entries. At exactly 272000 input tokens, Sol would stay on base rates while the siblings switch to long-context rates.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 10c76d4. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d140429. Configure here.

- json_output
limits:
context_window: 272000
context_window: 1000000

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect context window limit

Medium Severity

context_window was changed from 1050000 to 1000000, which understates the model’s documented capacity. OpenAI lists gpt-5.6-luna at 1,050,000 tokens, and this file already sets max_input_tokens to 922000 with max_output_tokens of 128000, which only fits a 1050000 context. The lower value can cause valid long-context requests to be rejected or misrouted.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d140429. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants