Skip to content

feat(aws-bedrock-mantle/openai.gpt-5.6-luna): add new models [bot]#1755

Merged
architkumar-truefoundry merged 4 commits into
mainfrom
bot/add-aws-bedrock-mantle-openai.gpt-5.6-luna-20260714-000538
Jul 15, 2026
Merged

feat(aws-bedrock-mantle/openai.gpt-5.6-luna): add new models [bot]#1755
architkumar-truefoundry merged 4 commits into
mainfrom
bot/add-aws-bedrock-mantle-openai.gpt-5.6-luna-20260714-000538

Conversation

@models-bot

@models-bot models-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Auto-generated by model-addition-agent for aws-bedrock-mantle/openai.gpt-5.6-luna.


Note

Low Risk
Declarative model metadata only; no application or routing logic changes.

Overview
Adds a new aws-bedrock-mantle model catalog entry for openai.gpt-5.6-luna, registering it as an active serverless responses-mode model with thinking enabled.

The definition includes per-region token pricing (us-west-2, us-east-2, us-east-1), a 272k context window, text/image input, and standard capability flags (function calling, prompt caching, structured/JSON output, etc.), with links to AWS and OpenAI model docs.

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

Comment thread providers/aws-bedrock-mantle/openai.gpt-5.6-luna.yaml Outdated
Comment thread providers/aws-bedrock-mantle/openai.gpt-5.6-luna.yaml Outdated
@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

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

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

Error
Traceback (most recent call last):
  File "/tmp/tmp4_ty5xji/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=False,
)

print(response.choices[0].message.content)

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

Error
Traceback (most recent call last):
  File "/tmp/tmphf_o70b5/snippet.py", line 27, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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",
        "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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"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,
)
_message = response.choices[0].message
if _message.tool_calls:
    for _tc in _message.tool_calls:
        print(f"Function: {_tc.function.name}")
        print(f"Arguments: {_tc.function.arguments}")
else:
    print(_message.content)

if not _message.tool_calls or len(_message.tool_calls) == 0:
    raise Exception("VALIDATION FAILED: tool-call - no tool calls in response")
print("VALIDATION: tool-call SUCCESS")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpncxyituj/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning_effort="medium",
    stream=False,
)
_usage = getattr(response, "usage", None)
_reasoning_detected = False

_choices = getattr(response, "choices", None)
if _choices and len(_choices) > 0:
    _message = getattr(_choices[0], "message", None)
else:
    _message = None

if _message and getattr(_message, "content", None) is not None:
    print(_message.content)

if _usage is not None:
    _output_token_details = getattr(_usage, "completion_tokens_details", None)
    if _output_token_details and getattr(_output_token_details, "reasoning_tokens", 0) > 0:
        _reasoning_detected = True
    elif getattr(_usage, "reasoning", None) is not None:
        _reasoning_detected = True

if getattr(_message, "reasoning_content", None) is not None:
    _reasoning_detected = True
elif getattr(_message, "reasoning", None) is not None:
    _reasoning_detected = True

if not _reasoning_detected:
    print("Response: ", response)
    raise Exception("VALIDATION FAILED: reasoning - no reasoning information in response")
print("VALIDATION: reasoning SUCCESS")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpiq9xqjrh/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    response_format={"type": "json_object"},
    stream=False,
)
import json as _json

_content = response.choices[0].message.content
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 — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpm4o_tjmz/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
)

for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            print(delta.content, end="", flush=True)

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

Error
Traceback (most recent call last):
  File "/tmp/tmplzb8ehsj/snippet.py", line 27, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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",
        "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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"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,
)
_message = response.choices[0].message
if _message.tool_calls:
    print(f"Number of parallel tool calls: {len(_message.tool_calls)}")
    for _tc in _message.tool_calls:
        print(f"Function: {_tc.function.name}")
        print(f"Arguments: {_tc.function.arguments}")
else:
    print(_message.content)

if not _message.tool_calls or len(_message.tool_calls) < 1:
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call - expected at least 1 tool call, "
        f"got {len(_message.tool_calls) if _message.tool_calls else 0}"
    )
print("VALIDATION: parallel-tool-call SUCCESS")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpn_a8xy34/snippet.py", line 27, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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",
        "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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"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,
)
_tool_call_indices = set()
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            print(delta.content, end="", flush=True)
        if delta.tool_calls:
            for _tc in delta.tool_calls:
                _tool_call_indices.add(_tc.index)
                if _tc.function:
                    print(_tc.function.arguments or "", end="", flush=True)

if len(_tool_call_indices) < 1:
    raise Exception(
        f"VALIDATION FAILED: parallel-tool-call stream - expected at least 1 tool call, "
        f"got {len(_tool_call_indices)}"
    )
print(f"\nNumber of parallel tool calls: {len(_tool_call_indices)}")
print("VALIDATION: parallel-tool-call stream SUCCESS")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpdqj2yst4/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "How to calculate 3^3^3^3? Think step by step and show all reasoning."},
    ],
    reasoning_effort="medium",
    stream=True,
)
_reasoning_detected = False
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            print(delta.content, end="", flush=True)
        if getattr(delta, "reasoning_content", None) is not None:
            _reasoning_detected = True
        if getattr(delta, "reasoning", None) is not None:
            _reasoning_detected = True

    _usage = getattr(chunk, "usage", None)
    if _usage is not None:
        _details = getattr(_usage, "completion_tokens_details", None)
        if _details and getattr(_details, "reasoning_tokens", 0) > 0:
            _reasoning_detected = True

if not _reasoning_detected:
    raise Exception("VALIDATION FAILED: reasoning stream - no reasoning information in stream")
print("\nVALIDATION: reasoning stream SUCCESS")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpzmosf7r7/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    response_format={"type": "json_object"},
    stream=True,
)
import json as _json

_accumulated = ""
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            _accumulated += delta.content
            print(delta.content, 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 — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp_s430ki4/snippet.py", line 21, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    response_format={"type": "json_schema", "json_schema": {"name": "CalendarEvent", "schema": response_schema}},
    stream=True,
)
import json as _json

_accumulated = ""
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            _accumulated += delta.content
            print(delta.content, 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 — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp8v4i_5kk/snippet.py", line 21, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"role": "user", "content": "Alice and Bob are going to a science fair on Friday. Extract the event details as JSON."},
    ],
    response_format={"type": "json_schema", "json_schema": {"name": "CalendarEvent", "schema": response_schema}},
    stream=False,
)
import json as _json

_content = response.choices[0].message.content
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 — tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp82lvhioj/snippet.py", line 27, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, 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': 'openai error: The security token included in the request is invalid.', 'error': {'message': 'openai 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",
        "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.chat.completions.create(
    model="test-v2-aws-bedrock-mantle/openai.gpt-5.6-luna",
    messages=[
        {"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,
)
_tool_calls_made = False
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            print(delta.content, end="", flush=True)
        if delta.tool_calls:
            _tool_calls_made = True
            for _tc in delta.tool_calls:
                if _tc.function:
                    print(_tc.function.arguments or "", end="", flush=True)

if not _tool_calls_made:
    raise Exception("VALIDATION FAILED: tool-call stream - no tool calls received")
print("\nVALIDATION: tool-call stream SUCCESS")

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

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

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

Error
Traceback (most recent call last):
  File "/tmp/tmp58mju1dk/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'}
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")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpsyffs2oe/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'}
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 — parallel-tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpq48_ea3y/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'}
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 — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp71vdbb17/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'}
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 — parallel-tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpla8fm15z/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'}
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 — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpyl44o_so/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'}
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 — tool-call:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp2spj5zrr/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'}
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 — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpxf0pbxu2/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'}
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 — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpu5kj6mcv/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'}
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 — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpwk0lqgcs/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'}
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/tmppm82jlvs/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'}
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/tmpzxiy8z07/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'}
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")

@architkumar-truefoundry
architkumar-truefoundry merged commit 17ccdc9 into main Jul 15, 2026
8 checks passed
@architkumar-truefoundry
architkumar-truefoundry deleted the bot/add-aws-bedrock-mantle-openai.gpt-5.6-luna-20260714-000538 branch July 15, 2026 06:55

@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.

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 56b8689. Configure here.

status: active
supportedModes:
- responses
thinking: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing reasoning effort params

Medium Severity

The catalog sets thinking: true but omits a params entry for reasoning_effort, unlike other Bedrock Mantle OpenAI reasoning models (e.g. openai.gpt-5.4) and the OpenAI/Azure Luna definitions linked in sources. Gateway scenarios for params and reasoning rely on that metadata, so consumers may not advertise or validate reasoning effort correctly for this model.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 56b8689. Configure here.

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

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

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

Error
Traceback (most recent call last):
  File "/tmp/tmp6y9d9f86/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'}
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 — reasoning (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp0_ropwm4/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'}
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 — tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpn9oskfz0/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'}
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")

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

Error
Traceback (most recent call last):
  File "/tmp/tmpu74eaapu/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'}
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 — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpprmxm2lo/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'}
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 — structured-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp_k2xl7g4/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'}
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 — parallel-tool-call (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpr_5as7zf/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'}
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/tmpkaf_10iv/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'}
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 — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpn_f2xj9h/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'}
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 — json-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp3ksqikkl/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'}
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 — structured-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmprtlkjkex/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'}
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 — params:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmppoyh5bqm/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'}
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)

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.

2 participants