Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

66.4 KB
Raw Blame
import json
from collections.abc import Mapping
from typing import Final
from unittest.mock import ANY

from integration.translation.case import TranslationTestCase
from integration.translation.responses.templates import RESPONSES_REQUEST, RESPONSES_RESPONSE
from integration.translation.templates.bedrock_mantle import (
    BEDROCK_MANTLE_ANTHROPIC_MESSAGES_REQUEST,
    BEDROCK_MANTLE_ANTHROPIC_MESSAGES_RESPONSE,
    BEDROCK_MANTLE_OPENAI_RESPONSES_REQUEST,
    BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSE,
)
from pydantic import JsonValue

CLAUDE_HAIKU_4_5_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={
        "model": "bedrock_mantle/anthropic.claude-haiku-4-5",
        "max_output_tokens": 64,
        "instructions": "You are a terse assistant.",
        "input": "Say hello.",
        "cache": {"no-cache": True},
    },
    expected_provider_endpoint="/anthropic/v1/messages",
    expected_provider_headers={
        "content-type": "application/json",
        "authorization": "Bearer synthetic-bedrock-mantle-key",
    },
    expected_provider_request={
        "messages": [{"role": "user", "content": [{"type": "text", "text": "Say hello."}]}],
        "max_tokens": 64,
        "system": [{"type": "text", "text": "You are a terse assistant."}],
        "anthropic_version": "bedrock-2023-05-31",
        "model": "anthropic.claude-haiku-4-5",
    },
    mock_provider_response={
        "model": "claude-haiku-4-5-20251001",
        "id": "msg_bdrk_lml4zvpzgxmbosxxxmuorjfiiq4indaswznwruho3redh7eijusq",
        "type": "message",
        "role": "assistant",
        "content": [{"type": "text", "text": "Hello!"}],
        "container": None,
        "stop_reason": "end_turn",
        "stop_sequence": None,
        "stop_details": None,
        "usage": {
            "input_tokens": 17,
            "cache_creation_input_tokens": 0,
            "cache_read_input_tokens": 0,
            "cache_creation": {"ephemeral_5m_input_tokens": 0, "ephemeral_1h_input_tokens": 0},
            "output_tokens": 5,
            "service_tier": "standard",
        },
    },
    expected_litellm_response={
        "id": ANY,
        "created_at": ANY,
        "error": None,
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "metadata": {},
        "model": "bedrock_mantle/anthropic.claude-haiku-4-5",
        "object": "response",
        "output": [
            {
                "type": "message",
                "id": ANY,
                "status": "completed",
                "role": "assistant",
                "content": [{"type": "output_text", "text": "Hello!", "annotations": []}],
                "phase": None,
            }
        ],
        "parallel_tool_calls": False,
        "temperature": None,
        "tool_choice": "auto",
        "tools": [],
        "top_p": None,
        "max_output_tokens": 64,
        "previous_response_id": None,
        "reasoning": None,
        "status": "completed",
        "text": {},
        "truncation": None,
        "usage": {
            "input_tokens": 17,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": 17,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 5,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 0, "text_tokens": 5},
            "total_tokens": 22,
            "cost": None,
        },
        "user": None,
        "store": None,
        "provider_specific_fields": {"citations": None, "thinking_blocks": None},
    },
)


CLAUDE_SONNET_5_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={
        "model": "bedrock_mantle/anthropic.claude-sonnet-5",
        "max_output_tokens": 64,
        "instructions": "You are a terse assistant.",
        "input": "Say hello.",
        "cache": {"no-cache": True},
    },
    expected_provider_endpoint="/anthropic/v1/messages",
    expected_provider_headers={
        "content-type": "application/json",
        "authorization": "Bearer synthetic-bedrock-mantle-key",
    },
    expected_provider_request={
        "messages": [{"role": "user", "content": [{"type": "text", "text": "Say hello."}]}],
        "max_tokens": 64,
        "system": [{"type": "text", "text": "You are a terse assistant."}],
        "anthropic_version": "bedrock-2023-05-31",
        "model": "anthropic.claude-sonnet-5",
    },
    mock_provider_response={
        "model": "claude-sonnet-5",
        "id": "msg_bdrk_73xk5vorp6t4tog7jvr6e6ohck6mykwzj3sv5qwnkil2d2tdoftq",
        "type": "message",
        "role": "assistant",
        "content": [{"type": "text", "text": "Hello."}],
        "container": None,
        "stop_reason": "end_turn",
        "stop_sequence": None,
        "stop_details": None,
        "usage": {
            "input_tokens": 21,
            "cache_creation_input_tokens": 0,
            "cache_read_input_tokens": 0,
            "cache_creation": {"ephemeral_5m_input_tokens": 0, "ephemeral_1h_input_tokens": 0},
            "output_tokens": 6,
            "output_tokens_details": {"thinking_tokens": 0},
            "service_tier": "standard",
        },
    },
    expected_litellm_response={
        "id": ANY,
        "created_at": ANY,
        "error": None,
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "metadata": {},
        "model": "bedrock_mantle/anthropic.claude-sonnet-5",
        "object": "response",
        "output": [
            {
                "type": "message",
                "id": ANY,
                "status": "completed",
                "role": "assistant",
                "content": [{"type": "output_text", "text": "Hello.", "annotations": []}],
                "phase": None,
            }
        ],
        "parallel_tool_calls": False,
        "temperature": None,
        "tool_choice": "auto",
        "tools": [],
        "top_p": None,
        "max_output_tokens": 64,
        "previous_response_id": None,
        "reasoning": None,
        "status": "completed",
        "text": {},
        "truncation": None,
        "usage": {
            "input_tokens": 21,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": 21,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 6,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 0, "text_tokens": 6},
            "total_tokens": 27,
            "cost": None,
        },
        "user": None,
        "store": None,
        "provider_specific_fields": {"citations": None, "thinking_blocks": None},
    },
)


GPT_5_4_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={
        "model": "bedrock_mantle/openai.gpt-5.4",
        "max_output_tokens": 64,
        "instructions": "You are a terse assistant.",
        "input": "Say hello.",
        "cache": {"no-cache": True},
    },
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        "model": "openai.gpt-5.4",
        "input": "Say hello.",
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
    },
    mock_provider_response={
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240603,
        "created_at": 1791240603,
        "error": None,
        "frequency_penalty": 0.0,
        "id": "resp_6n4dcdfylvtcf4gs5xi7cbqt6sacvcyafrmdt2dm4m32g2jzjsca",
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
        "max_tool_calls": None,
        "metadata": {},
        "model": "openai.gpt-5.4",
        "object": "response",
        "output": [
            {
                "content": [{"annotations": [], "logprobs": [], "text": "Hello.", "type": "output_text"}],
                "id": "msg_76cc325cb949522da46846872f930337",
                "phase": "final_answer",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            }
        ],
        "parallel_tool_calls": True,
        "presence_penalty": 0.0,
        "previous_response_id": None,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "reasoning": {"summary": None, "effort": "none"},
        "safety_identifier": None,
        "service_tier": "default",
        "status": "completed",
        "store": True,
        "temperature": 1.0,
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 0.98,
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 6,
            "output_tokens_details": {"reasoning_tokens": 0},
            "total_tokens": 25,
        },
        "user": None,
        "moderation": None,
    },
    expected_litellm_response={
        "id": ANY,
        "created_at": 1791240603,
        "error": None,
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "metadata": {},
        "model": "bedrock_mantle/openai.gpt-5.4",
        "object": "response",
        "output": [
            {
                "id": "msg_76cc325cb949522da46846872f930337",
                "content": [{"annotations": [], "text": "Hello.", "type": "output_text", "logprobs": []}],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "final_answer",
            }
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tool_choice": "auto",
        "tools": [],
        "top_p": 0.98,
        "max_output_tokens": 64,
        "previous_response_id": None,
        "reasoning": {"summary": None, "effort": "none"},
        "status": "completed",
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 6,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 0, "text_tokens": None},
            "total_tokens": 25,
            "cost": None,
        },
        "user": None,
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240603,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)


GPT_5_6_SOL_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={
        "model": "bedrock_mantle/openai.gpt-5.6-sol",
        "max_output_tokens": 64,
        "instructions": "You are a terse assistant.",
        "input": "Say hello.",
        "cache": {"no-cache": True},
    },
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        "model": "openai.gpt-5.6-sol",
        "input": "Say hello.",
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
    },
    mock_provider_response={
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240605,
        "created_at": 1791240605,
        "error": None,
        "frequency_penalty": 0.0,
        "id": "resp_a5onvds4tvin6cax2b2sxhhbc3l26ktf72r6eybmzvc5yjvouwaq",
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
        "max_tool_calls": None,
        "metadata": {},
        "model": "openai.gpt-5.6-sol",
        "object": "response",
        "output": [
            {
                "content": [{"annotations": [], "logprobs": [], "text": "Hello!", "type": "output_text"}],
                "id": "msg_453083c06537503e98fd06ef5f4695cb",
                "phase": "final_answer",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            }
        ],
        "parallel_tool_calls": True,
        "presence_penalty": 0.0,
        "previous_response_id": None,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "reasoning": {"summary": None, "effort": "medium", "context": "all_turns"},
        "safety_identifier": None,
        "service_tier": "default",
        "status": "completed",
        "store": True,
        "temperature": 1.0,
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 0.98,
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 6,
            "output_tokens_details": {"reasoning_tokens": 0},
            "total_tokens": 25,
        },
        "user": None,
        "moderation": None,
    },
    expected_litellm_response={
        "id": ANY,
        "created_at": 1791240605,
        "error": None,
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "metadata": {},
        "model": "bedrock_mantle/openai.gpt-5.6-sol",
        "object": "response",
        "output": [
            {
                "id": "msg_453083c06537503e98fd06ef5f4695cb",
                "content": [{"annotations": [], "text": "Hello!", "type": "output_text", "logprobs": []}],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "final_answer",
            }
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tool_choice": "auto",
        "tools": [],
        "top_p": 0.98,
        "max_output_tokens": 64,
        "previous_response_id": None,
        "reasoning": {"summary": None, "effort": "medium", "context": "all_turns"},
        "status": "completed",
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 6,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 0, "text_tokens": None},
            "total_tokens": 25,
            "cost": None,
        },
        "user": None,
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240605,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)


GPT_5_6_LUNA_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={
        "model": "bedrock_mantle/openai.gpt-5.6-luna",
        "max_output_tokens": 64,
        "instructions": "You are a terse assistant.",
        "input": "Say hello.",
        "cache": {"no-cache": True},
    },
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        "model": "openai.gpt-5.6-luna",
        "input": "Say hello.",
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
    },
    mock_provider_response={
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240608,
        "created_at": 1791240607,
        "error": None,
        "frequency_penalty": 0.0,
        "id": "resp_byjr6m3dzer75kvjrtcr3x7koxglybfni6zmcdndptl7zi5pdyuq",
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "max_output_tokens": 64,
        "max_tool_calls": None,
        "metadata": {},
        "model": "openai.gpt-5.6-luna",
        "object": "response",
        "output": [
            {
                "content": [{"annotations": [], "logprobs": [], "text": "Hello!", "type": "output_text"}],
                "id": "msg_e9993690dc1f5411be17b63ff2b0e8e9",
                "phase": "final_answer",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            }
        ],
        "parallel_tool_calls": True,
        "presence_penalty": 0.0,
        "previous_response_id": None,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "reasoning": {"summary": None, "effort": "medium", "context": "all_turns"},
        "safety_identifier": None,
        "service_tier": "default",
        "status": "completed",
        "store": True,
        "temperature": 1.0,
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "tool_choice": "auto",
        "tools": [],
        "top_logprobs": 0,
        "top_p": 0.98,
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 6,
            "output_tokens_details": {"reasoning_tokens": 0},
            "total_tokens": 25,
        },
        "user": None,
        "moderation": None,
    },
    expected_litellm_response={
        "id": ANY,
        "created_at": 1791240607,
        "error": None,
        "incomplete_details": None,
        "instructions": "You are a terse assistant.",
        "metadata": {},
        "model": "bedrock_mantle/openai.gpt-5.6-luna",
        "object": "response",
        "output": [
            {
                "id": "msg_e9993690dc1f5411be17b63ff2b0e8e9",
                "content": [{"annotations": [], "text": "Hello!", "type": "output_text", "logprobs": []}],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "final_answer",
            }
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tool_choice": "auto",
        "tools": [],
        "top_p": 0.98,
        "max_output_tokens": 64,
        "previous_response_id": None,
        "reasoning": {"summary": None, "effort": "medium", "context": "all_turns"},
        "status": "completed",
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 19,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 6,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 0, "text_tokens": None},
            "total_tokens": 25,
            "cost": None,
        },
        "user": None,
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1791240608,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)

BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_RESPONSE: Final[Mapping[str, JsonValue]] = {
    key: value for key, value in RESPONSES_RESPONSE.items() if key not in ("provider_specific_fields",)
}

BEDROCK_MANTLE_ANTHROPIC_MESSAGES_RESPONSES_SYSTEM: Final[JsonValue] = [
    {
        "type": "text",
        "text": "You help maintain a synthetic Python project. Read the relevant files before suggesting a fix. "
        "Explain which file you need next, then call a read-only tool. Never change files. Use the "
        "responses client for this project review. Consider zero, negative and non-integer quantities "
        "before choosing the next file to inspect.",
    },
]

CLAUDE_OPUS_5_5_THINKING_SIGNATURE_0: Final = (
    "CAQSiwUKEggSEAEYAjgBQgh0aGlua2luZxIMOOtS7Hiav56KWragGgwpR/YfU3idr9yBpQMiMK4FkesXYYneMZORQdVYD9RW4aipV/xs5/8Y"
    "7VLXJoGMgJZTAbfRIx1QTTsOahmlTyqmBHNIuHNZzm1tjsg4KBs2SM59oBG0Y1rzAq60RhMBN56yA7XQxO7tYyklXQlMlvqywK/CM2LopG/i"
    "Grcau7JI/jEEu4bMkHn0mdyWlg2c/XhK+NcXJDQwsP0fFW3+I/QftObPLaiblgU3LldmQdnut2da7Rn+VoufrkBbHP3GHKVo3HpIN73s4juH"
    "riD9mPpg48Q4DY/u3HdNiHJkfq5tDNFS2Fgpu06Y0tndoeUQWoHuPx7NqJ0lqK4+zTvFx6bQ3rzqsBZJqI2gHocRYdtCiULDyC67SOLtFfXr"
    "LSZS4lMFJrS6RMBqdd4edAwh6LkrJ1ItbfM85OvI7iRQOp82+UEXXncJgSCPo2Th8RuBdzo/zQswj5L2KMbXdkkNEEGXexW/YccG7XhOj9XM"
    "V5SinZlJ3QF6EbgdyVbukyG2yYUrxqjAMMpR+upoHmjWs+lqm3EehyO1CldU0COcvTNP/3vy19/c0ImyJ0bc/uki5Xtz+9sqpd+gZ0gCf5Nc"
    "pLh4grY1U3IgEdZEKlUzO2T8OuKzgxBn6u+z0mqB1ZWARgx+R0HKIy0Xyly7gNaikyZwXUCKkSepOnb2xeUMwQ5t4qnAMBLjWnILxnnYF4Jf"
    "EVD2N7RhobOXLhl+izVYoB2tQBiKfR2+TloExvsWWT05YQM0uLSUxp8sAJHQgdm0vywVaQlmZ7LpYYs1pKLnsI5XNT/G+f4k8+URqoJ2RcTm"
    "BFSkg7bYePEYAQ=="
)

CLAUDE_OPUS_5_5_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={**RESPONSES_REQUEST, "model": "bedrock_mantle/anthropic.claude-opus-5-5"},
    expected_provider_endpoint="/anthropic/v1/messages",
    expected_provider_headers={
        "content-type": "application/json",
        "authorization": "Bearer synthetic-bedrock-mantle-key",
    },
    expected_provider_request={
        **BEDROCK_MANTLE_ANTHROPIC_MESSAGES_REQUEST,
        "system": BEDROCK_MANTLE_ANTHROPIC_MESSAGES_RESPONSES_SYSTEM,
    },
    mock_provider_response={
        **BEDROCK_MANTLE_ANTHROPIC_MESSAGES_RESPONSE,
        "id": "msg_bdrk_vtj2w754torwaf46a3regz6cuegn44qhpglkshgsojppqmroreza",
        "content": [
            {
                "type": "thinking",
                "thinking": "I'll read shop/validation.py around line 18 first, as the user requested, before looking "
                "at anything else.\n\n",
                "signature": CLAUDE_OPUS_5_5_THINKING_SIGNATURE_0,
            },
            {
                "type": "text",
                "text": "Next I need `shop/validation.py`, starting at `validate_quantity` on line 18. That's where "
                "we can see how zero, negative and non-integer quantities are handled.",
            },
            {
                "type": "tool_use",
                "id": "toolu_bdrk_015nyupS1RboZpDnHW42rzbD",
                "name": "read_file",
                "input": {"path": "shop/validation.py", "start_line": 1, "end_line": 60},
            },
        ],
        "usage": {
            "input_tokens": 4,
            "cache_creation_input_tokens": 0,
            "cache_read_input_tokens": 873,
            "cache_creation": {"ephemeral_5m_input_tokens": 0, "ephemeral_1h_input_tokens": 0},
            "output_tokens": 207,
            "output_tokens_details": {"thinking_tokens": 53},
            "service_tier": "standard",
        },
    },
    expected_litellm_response={
        **RESPONSES_RESPONSE,
        "model": "bedrock_mantle/anthropic.claude-opus-5-5",
        "output": [
            {
                "type": "reasoning",
                "id": ANY,
                "status": "completed",
                "role": "assistant",
                "content": [
                    {
                        "type": "output_text",
                        "text": "I'll read shop/validation.py around line 18 first, as the user requested, before "
                        "looking at anything else.\n\n",
                        "annotations": [],
                    },
                ],
                "phase": None,
                "encrypted_content": json.dumps(
                    [
                        {
                            "type": "thinking",
                            "thinking": "I'll read shop/validation.py around line 18 first, as the user requested, "
                            "before looking at anything else.\n\n",
                            "signature": CLAUDE_OPUS_5_5_THINKING_SIGNATURE_0,
                        },
                    ],
                    separators=(",", ":"),
                ),
            },
            {
                "type": "message",
                "id": ANY,
                "status": "completed",
                "role": "assistant",
                "content": [
                    {
                        "type": "output_text",
                        "text": "Next I need `shop/validation.py`, starting at `validate_quantity` on line 18. "
                        "That's where we can see how zero, negative and non-integer quantities are handled.",
                        "annotations": [],
                    },
                ],
                "phase": None,
            },
            {
                "arguments": '{"path": "shop/validation.py", "start_line": 1, "end_line": 60}',
                "call_id": "toolu_bdrk_015nyupS1RboZpDnHW42rzbD",
                "name": "read_file",
                "type": "function_call",
                "id": "fc_toolu_bdrk_015nyupS1RboZpDnHW42rzbD",
                "namespace": None,
                "status": "completed",
            },
        ],
        "usage": {
            "input_tokens": 877,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 873,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": 4,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 207,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 53, "text_tokens": 154},
            "total_tokens": 1084,
            "cost": None,
        },
        "provider_specific_fields": {
            "citations": None,
            "thinking_blocks": [
                {
                    "type": "thinking",
                    "thinking": "I'll read shop/validation.py around line 18 first, as the user requested, before "
                    "looking at anything else.\n\n",
                    "signature": CLAUDE_OPUS_5_5_THINKING_SIGNATURE_0,
                },
            ],
        },
    },
)


BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_INPUT: Final[JsonValue] = [
    {
        "role": "user",
        "content": [
            {
                "type": "input_text",
                "text": "The checkout rejects quantities of zero. Find the validation code and its tests.",
            },
        ],
    },
    {
        "role": "assistant",
        "content": [{"type": "output_text", "text": "I will locate the quantity validation and its tests."}],
    },
    {
        "type": "function_call",
        "call_id": "toolu_synthetic_search_01",
        "name": "search_files",
        "arguments": '{"query": "quantity", "paths": ["shop/", "tests/"]}',
    },
    {
        "type": "function_call_output",
        "call_id": "toolu_synthetic_search_01",
        "output": '{"matches": [{"path": "shop/validation.py", "line": 18, "text": "def '
        'validate_quantity(quantity):"}, {"path": "tests/test_validation.py", "line": 7, "text": '
        '"def test_zero_quantity():"}]}',
    },
    {
        "role": "user",
        "content": [
            {
                "type": "input_text",
                "text": "Read the validation file first so we can understand how zero and negative quantities are "
                "handled.",
                "prompt_cache_breakpoint": {"mode": "explicit"},
            },
        ],
    },
]

GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={**RESPONSES_REQUEST, "model": "bedrock_mantle/openai.gpt-6.1-sol"},
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_REQUEST,
        "input": BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_INPUT,
        "instructions": RESPONSES_REQUEST["instructions"],
        "tools": RESPONSES_REQUEST["tools"],
    },
    mock_provider_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSE,
        "completed_at": 1792027277,
        "created_at": 1792027275,
        "id": "resp_ncuf2qbhdiy3ykbk6y6t4iduokpwdg2h7xktdw65x3azqiv7xxbq",
        "instructions": "You help maintain a synthetic Python project. Read the relevant files before suggesting a fix. "
        "Explain which file you need next, then call a read-only tool. Never change files. Use the "
        "responses client for this project review. Consider zero, negative and non-integer quantities "
        "before choosing the next file to inspect.",
        "output": [
            {
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeGleCFHR3X7I/3TQIxhAYfW9mjX0cFKFSki7Gf5uzENSAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBMTVQNEFLb1hPRHNZMHUrbGhkYnExVzIveHBJMllVbENGQm5BY0RxMEVNZnh3c3BUS1NMV2t5N2o5SGRON2RuU1E9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBcG493+ZcD13Vo9Z095jldqzOPdER/g3kHez3TwwTyexPQO0PepR8jRQ3zVYQVnB+5HsLoOUbfxtpDKFNZdhkG7vX7H79h6S2p5Tmcda0OnUhLEa1gj/FATh1bTrkCAAAQANAHetSqAaabgN4pn8RLag9s76ySEeodJgSjG7iLEOmNhVDDpO42M0mz4lH1lu3AXf////8AAAABAAAAAAAAAAAAAAABAAABw/bggpCep0rKr5bUUaXRidg+rbrNYiSeN0LEjiXKzD7Wt/+NhdY6fopjNz8a882sSCQGS6uQbFLsNO+b8+enVXmNgn96/OH9Nh89uQrTE/oPwYWD49Ts+5h4TJqljt1QVto3/i1qiVErPLn+0jpC8qZZKgOsUx8kApialKG9iJdnxT7xWsSSNALi5rt9ckiDVtw7HDLgzqIWs5d5kMBNj11466qX8pb+TYkQIAAFoR/Crx8KG3YqoX5kZJDZrUNFG0mz7arLDO9UaYG/ntFSqDDJmsYlcpyJchpzMZBNrO+5pQ4G8DIdBosJNnR/r5ebFJX7aLT0LWM5wI1morAlmNlhe+TOHPgY6AHpRuHu9cj1EWbuj1LKx+XQAu5NUEjIKFOFs+tVdENroClJnLtP1P4Ncn9DVjdy9pKzy6rt3UdpFkyIHizfPIHA9Ep6JEU37r2lzrJb2Bn9JtwRKxY7gB8TxUk/5tZ5DqzbPc+0KfFM9D1RL06U+birMIJwC8AM9zWpl0basljGg6Wg3t2Ey4Gua6M+gd5sGF0wQtDRShPH0VEy0dl6ZdfC8G0b1qxGWPpymastGVvw2CamaGJEuHexPr3//CytpLZYZmn/aIemUxH1AGcwZQIwF1zAfYPc+CW98SZN8eOtgH6Zvjg9iy37mmtat8ctPtxP/lChz1gZQ7j3VGQWYipmAjEAh5FUTyiuF6j+/OLSsZhAmN2DYOYdP+30RhT2hX5cyUYdhaVgrYRuTBRyQtGQtd5K",
                "id": "rs_edbdb8fa5c17554bb8c81cf0a739b84f",
                "summary": [],
                "type": "reasoning",
            },
            {
                "content": [
                    {
                        "annotations": [],
                        "logprobs": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative "
                        "values, and non-integer quantities.",
                        "type": "output_text",
                    },
                ],
                "id": "msg_456a8eb8173957c694b6ef36746be4cf",
                "phase": "commentary",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_5f196ff4cb915362abef090168884770",
                "id": "fc_39bb6f400cd35d1fbad36e6cc2fdfaa0",
                "name": "read_file",
                "status": "completed",
                "type": "function_call",
            },
        ],
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 152,
            "output_tokens_details": {"reasoning_tokens": 86},
            "total_tokens": 461,
        },
    },
    expected_litellm_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_RESPONSE,
        "created_at": 1792027275,
        "model": "bedrock_mantle/openai.gpt-6.1-sol",
        "output": [
            {
                "id": "rs_edbdb8fa5c17554bb8c81cf0a739b84f",
                "summary": [],
                "type": "reasoning",
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeGleCFHR3X7I/3TQIxhAYfW9mjX0cFKFSki7Gf5uzENSAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBMTVQNEFLb1hPRHNZMHUrbGhkYnExVzIveHBJMllVbENGQm5BY0RxMEVNZnh3c3BUS1NMV2t5N2o5SGRON2RuU1E9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBcG493+ZcD13Vo9Z095jldqzOPdER/g3kHez3TwwTyexPQO0PepR8jRQ3zVYQVnB+5HsLoOUbfxtpDKFNZdhkG7vX7H79h6S2p5Tmcda0OnUhLEa1gj/FATh1bTrkCAAAQANAHetSqAaabgN4pn8RLag9s76ySEeodJgSjG7iLEOmNhVDDpO42M0mz4lH1lu3AXf////8AAAABAAAAAAAAAAAAAAABAAABw/bggpCep0rKr5bUUaXRidg+rbrNYiSeN0LEjiXKzD7Wt/+NhdY6fopjNz8a882sSCQGS6uQbFLsNO+b8+enVXmNgn96/OH9Nh89uQrTE/oPwYWD49Ts+5h4TJqljt1QVto3/i1qiVErPLn+0jpC8qZZKgOsUx8kApialKG9iJdnxT7xWsSSNALi5rt9ckiDVtw7HDLgzqIWs5d5kMBNj11466qX8pb+TYkQIAAFoR/Crx8KG3YqoX5kZJDZrUNFG0mz7arLDO9UaYG/ntFSqDDJmsYlcpyJchpzMZBNrO+5pQ4G8DIdBosJNnR/r5ebFJX7aLT0LWM5wI1morAlmNlhe+TOHPgY6AHpRuHu9cj1EWbuj1LKx+XQAu5NUEjIKFOFs+tVdENroClJnLtP1P4Ncn9DVjdy9pKzy6rt3UdpFkyIHizfPIHA9Ep6JEU37r2lzrJb2Bn9JtwRKxY7gB8TxUk/5tZ5DqzbPc+0KfFM9D1RL06U+birMIJwC8AM9zWpl0basljGg6Wg3t2Ey4Gua6M+gd5sGF0wQtDRShPH0VEy0dl6ZdfC8G0b1qxGWPpymastGVvw2CamaGJEuHexPr3//CytpLZYZmn/aIemUxH1AGcwZQIwF1zAfYPc+CW98SZN8eOtgH6Zvjg9iy37mmtat8ctPtxP/lChz1gZQ7j3VGQWYipmAjEAh5FUTyiuF6j+/OLSsZhAmN2DYOYdP+30RhT2hX5cyUYdhaVgrYRuTBRyQtGQtd5K",
            },
            {
                "id": "msg_456a8eb8173957c694b6ef36746be4cf",
                "content": [
                    {
                        "annotations": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative "
                        "values, and non-integer quantities.",
                        "type": "output_text",
                        "logprobs": [],
                    },
                ],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "commentary",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_5f196ff4cb915362abef090168884770",
                "name": "read_file",
                "type": "function_call",
                "id": "fc_39bb6f400cd35d1fbad36e6cc2fdfaa0",
                "namespace": None,
                "status": "completed",
            },
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tools": [
            {
                "name": "search_files",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "query": {"type": "string"},
                        "paths": {"type": "array", "items": {"type": "string"}},
                    },
                    "required": ["query", "paths"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Search source and test files for a literal term.",
                "output_schema": None,
            },
            {
                "name": "read_file",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "path": {"type": "string"},
                        "start_line": {"type": "integer", "minimum": 1},
                        "end_line": {"type": "integer", "minimum": 1},
                    },
                    "required": ["path", "start_line", "end_line"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Read a range of lines from a project file.",
                "output_schema": None,
            },
        ],
        "top_p": 0.98,
        "reasoning": {"summary": None, "effort": "high", "context": "all_turns"},
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 152,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 86, "text_tokens": None},
            "total_tokens": 461,
            "cost": None,
        },
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1792027277,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)

GPT_6_LUNA_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={**RESPONSES_REQUEST, "model": "bedrock_mantle/openai.gpt-6-luna"},
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_REQUEST,
        "model": "openai.gpt-6-luna",
        "input": BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_INPUT,
        "instructions": RESPONSES_REQUEST["instructions"],
        "tools": RESPONSES_REQUEST["tools"],
    },
    mock_provider_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSE,
        "completed_at": 1792027282,
        "created_at": 1792027281,
        "id": "resp_yc6hh2y7tm7sukz3zbg635xni33t6ozu2apke3askowhlad4lxga",
        "instructions": "You help maintain a synthetic Python project. Read the relevant files before suggesting a fix. "
        "Explain which file you need next, then call a read-only tool. Never change files. Use the "
        "responses client for this project review. Consider zero, negative and non-integer quantities "
        "before choosing the next file to inspect.",
        "model": "openai.gpt-6-luna",
        "output": [
            {
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeOwVd15Aergyicha8AZ4SefU5Ab/+gNptGXd3dWnmXffAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBK2x2WjV3WXpBelNuNnBkWEtDeGMzeExnTkVVQXNndCtqckJRdC9EemJTWFdMNVpsOGFzSlFZWnd2MGFSUGxXMmc9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBc+CaVDJzjT9x/Xl7UMI9TPO/qVRRjtLAYOLLWagTyexPQO0PepR8jRQ3zVYSYyTqscA+i/olxb+B4IMEyuMjfLB0apO50O6jWVoBau4lK1VAT7KOg4Ct3gcM8fpsCAAAQADY6nvfJNZKJekHDZgVZ6G5URFxJ5hQwwK85F4C79T8R+G6K6YQCqWfOAYynvUUXJ/////8AAAABAAAAAAAAAAAAAAABAAABjYWhLTlrtuV8NrFybrM5bSxs9syuqr0ZvNCbZuTrdEN+3NddWFCoXJfeEpKGsnNjgfg4LwxY//KIrX0MdnNRWVjq0Gm+ArDwWKMM46LGB8lWYeBkC+V+96UVABY5vw9CclMuLB/8Z0XHOqDAW/j8SEx9ag+3tRkt17OjZ/MbmwsrgIMJCr1Nnj3JsyKhPTvl07QGSj3BQIiLhpQAdXj/4PdVyRd2gcDq/kyQ9UJ/hlsxqTaZdlMAVyLCAecBxB0hBjsnQdknB/GkLtbSVxze/YAAMA2bvNuZ5O9NHSJk5R1JQKolDpSoyMKLhLm1LV0LDfoRdsbnXQfXhJpOaiTE/22X5fcwOoiRIcwzN+oQxYru9jMHDjWTMa8LjpcsH4etmfCwNS2TMQkAU6ZuQ1mteS8zsKZZjoBiqQKej/l5PC1VoLP8yjoMz9X5V1cyvj3I1CFS/tbtE34hn7LAfv1Go/VUhXnYHn2+vxgXr8kE78AW5NcmaNJ2duXCcako4LNqaWCa02joZsf8Z6C9IQqK8PAmLuDbPzaWLX/XNumnAGcwZQIxALG90gEcUh6QW0HMDRkZq2blkVDOUuObEpl+So92+Z8mPwLHC/k+yqnL4lccwlaLsQIwHxrXKIf4QCvwg9v9fStdw5+jU++ZmRIGjrtLoxRyLkV0NYjQ9y/cHwKh5grdA0Qr",
                "id": "rs_23466129e3845ca49de5b72546c9370d",
                "summary": [],
                "type": "reasoning",
            },
            {
                "content": [
                    {
                        "annotations": [],
                        "logprobs": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative, "
                        "and non-integer quantities.",
                        "type": "output_text",
                    },
                ],
                "id": "msg_fb7c4c9f5fdc5280ae73896bbdb0b7bc",
                "phase": "commentary",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":80}',
                "call_id": "call_90b43b6346d45db185a8230ca05b7379",
                "id": "fc_c4c1831a0bfe5c72b8ab072464830a14",
                "name": "read_file",
                "status": "completed",
                "type": "function_call",
            },
        ],
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 125,
            "output_tokens_details": {"reasoning_tokens": 60},
            "total_tokens": 434,
        },
    },
    expected_litellm_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_RESPONSE,
        "created_at": 1792027281,
        "model": "bedrock_mantle/openai.gpt-6-luna",
        "output": [
            {
                "id": "rs_23466129e3845ca49de5b72546c9370d",
                "summary": [],
                "type": "reasoning",
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeOwVd15Aergyicha8AZ4SefU5Ab/+gNptGXd3dWnmXffAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBK2x2WjV3WXpBelNuNnBkWEtDeGMzeExnTkVVQXNndCtqckJRdC9EemJTWFdMNVpsOGFzSlFZWnd2MGFSUGxXMmc9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBc+CaVDJzjT9x/Xl7UMI9TPO/qVRRjtLAYOLLWagTyexPQO0PepR8jRQ3zVYSYyTqscA+i/olxb+B4IMEyuMjfLB0apO50O6jWVoBau4lK1VAT7KOg4Ct3gcM8fpsCAAAQADY6nvfJNZKJekHDZgVZ6G5URFxJ5hQwwK85F4C79T8R+G6K6YQCqWfOAYynvUUXJ/////8AAAABAAAAAAAAAAAAAAABAAABjYWhLTlrtuV8NrFybrM5bSxs9syuqr0ZvNCbZuTrdEN+3NddWFCoXJfeEpKGsnNjgfg4LwxY//KIrX0MdnNRWVjq0Gm+ArDwWKMM46LGB8lWYeBkC+V+96UVABY5vw9CclMuLB/8Z0XHOqDAW/j8SEx9ag+3tRkt17OjZ/MbmwsrgIMJCr1Nnj3JsyKhPTvl07QGSj3BQIiLhpQAdXj/4PdVyRd2gcDq/kyQ9UJ/hlsxqTaZdlMAVyLCAecBxB0hBjsnQdknB/GkLtbSVxze/YAAMA2bvNuZ5O9NHSJk5R1JQKolDpSoyMKLhLm1LV0LDfoRdsbnXQfXhJpOaiTE/22X5fcwOoiRIcwzN+oQxYru9jMHDjWTMa8LjpcsH4etmfCwNS2TMQkAU6ZuQ1mteS8zsKZZjoBiqQKej/l5PC1VoLP8yjoMz9X5V1cyvj3I1CFS/tbtE34hn7LAfv1Go/VUhXnYHn2+vxgXr8kE78AW5NcmaNJ2duXCcako4LNqaWCa02joZsf8Z6C9IQqK8PAmLuDbPzaWLX/XNumnAGcwZQIxALG90gEcUh6QW0HMDRkZq2blkVDOUuObEpl+So92+Z8mPwLHC/k+yqnL4lccwlaLsQIwHxrXKIf4QCvwg9v9fStdw5+jU++ZmRIGjrtLoxRyLkV0NYjQ9y/cHwKh5grdA0Qr",
            },
            {
                "id": "msg_fb7c4c9f5fdc5280ae73896bbdb0b7bc",
                "content": [
                    {
                        "annotations": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative, "
                        "and non-integer quantities.",
                        "type": "output_text",
                        "logprobs": [],
                    },
                ],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "commentary",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":80}',
                "call_id": "call_90b43b6346d45db185a8230ca05b7379",
                "name": "read_file",
                "type": "function_call",
                "id": "fc_c4c1831a0bfe5c72b8ab072464830a14",
                "namespace": None,
                "status": "completed",
            },
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tools": [
            {
                "name": "search_files",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "query": {"type": "string"},
                        "paths": {"type": "array", "items": {"type": "string"}},
                    },
                    "required": ["query", "paths"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Search source and test files for a literal term.",
                "output_schema": None,
            },
            {
                "name": "read_file",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "path": {"type": "string"},
                        "start_line": {"type": "integer", "minimum": 1},
                        "end_line": {"type": "integer", "minimum": 1},
                    },
                    "required": ["path", "start_line", "end_line"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Read a range of lines from a project file.",
                "output_schema": None,
            },
        ],
        "top_p": 0.98,
        "reasoning": {"summary": None, "effort": "high", "context": "all_turns"},
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 125,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 60, "text_tokens": None},
            "total_tokens": 434,
            "cost": None,
        },
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1792027282,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)

GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={**RESPONSES_REQUEST, "model": "bedrock_mantle/openai.gpt-6-astra"},
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_REQUEST,
        "model": "openai.gpt-6-astra",
        "input": BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_INPUT,
        "instructions": RESPONSES_REQUEST["instructions"],
        "tools": RESPONSES_REQUEST["tools"],
    },
    mock_provider_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSE,
        "completed_at": 1792027291,
        "created_at": 1792027288,
        "id": "resp_zq4paxdqatt7bzmozrzd5dgkc45z2fqq2t62p65iytdvzhpj4imq",
        "instructions": "You help maintain a synthetic Python project. Read the relevant files before suggesting a fix. "
        "Explain which file you need next, then call a read-only tool. Never change files. Use the "
        "responses client for this project review. Consider zero, negative and non-integer quantities "
        "before choosing the next file to inspect.",
        "model": "openai.gpt-6-astra",
        "output": [
            {
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeGJfCWQXacPcv8CJEsM/9LMzYWLNLvINpMJiB+7mMoMSAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBdmV6d1pveEZZenhoM3ZWZUxEOTBQZ09rcjBXYys0eEFIdmtnMVhZajdPT3J0MHpFVWJvLzZuTjJGd0lMOEhzWmc9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBcqmn6iHlcPI0BGSnwJYE1d9MzPK9bnaHOZk9lFQTyexPQO0PepR8jRQ3zVYTqc2mAtpep3MH2qkAqIiac9vmFBptiTdAS408lL863oq6JCKa922ci0EO0NO/j7q8CAAAQAO0SFcb1ccaIX77cujd+ERFaa3QyF85pu8HuGJKKkp6S3ANY44npxMkRFkXKvlyLtv////8AAAABAAAAAAAAAAAAAAABAAABszzAzyhxSMCZO+FKUTOV9cQK8fNZeqnOi2vw5VedZ2dLeEc7gJtXDVgTNL2lBRcMwhPCeSy5z0W3086Lp4JsUt2rsVSGsrmTA1ZwOrPRGTn9D2blXhSKrNkAku9omlqm5nUj9g/eqxKNL8xl+J5FAcIGDJe2KJAXrgA63Zg5Ry5y+VlyNGrsQec5gyGL3m8Fqiz1dOfUJ7kPyakAFz372sEeqCX01OjcKj8W+gdD63sSX4rmnO9aVne2M1N2EjqT/GehHTWBue/7lSnjg8cdg76Y5dGNYdY8EJhuKlp7ARqiJKUpPcA6qOzusPSiF6h5dbYbhp89HtC10iTP4DSnL1lMMpT4WulwcScshvOVFGFAHj7PtwwPR2EAvSwfvmJEYbAfeyEMJL+WY1LdZS9+dFkb0uWo8C3KnivTWsORS0vYmGcgpK2AVTknF0it0rV7AQ2kJ1XuVbYVMAF8mjc0dFURDwewPFCxbclWCtyHFCpIEQQwuLtCjPTeaYzBVyx55JsLn2Ubdbj/afbjUihNCVh7HJynKS4y1a76YJ9Ju6Vj2Yo1qbkSxsVouwCXpm1HyWR9tFYrHiONBNxA8fqSgGoYKLcAZzBlAjEAwcTlQMfxQqW70KnwfplmXOQi/CeaoAf6gCkfOLmJKfA3o5ZXGaypcmFB8kx3BS4YAjBp573CdX9BLzVIQv15fXhlL75Txr46SCK/kkYmvQxpGawvajLjTQR8EaJlJQXuNdw=",
                "id": "rs_81e1dfdd19dc5140b879747fddfcc5a4",
                "summary": [],
                "type": "reasoning",
            },
            {
                "content": [
                    {
                        "annotations": [],
                        "logprobs": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative, "
                        "and non-integer quantities.",
                        "type": "output_text",
                    },
                ],
                "id": "msg_9be7ef044f5159d7812e99131a4d75cd",
                "phase": "commentary",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_38b08e80239e571e8f918025be1a128c",
                "id": "fc_13ce596fb38a5b50a123a6e2357705bf",
                "name": "read_file",
                "status": "completed",
                "type": "function_call",
            },
        ],
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 143,
            "output_tokens_details": {"reasoning_tokens": 78},
            "total_tokens": 452,
        },
    },
    expected_litellm_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_RESPONSE,
        "created_at": 1792027288,
        "model": "bedrock_mantle/openai.gpt-6-astra",
        "output": [
            {
                "id": "rs_81e1dfdd19dc5140b879747fddfcc5a4",
                "summary": [],
                "type": "reasoning",
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeGJfCWQXacPcv8CJEsM/9LMzYWLNLvINpMJiB+7mMoMSAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBdmV6d1pveEZZenhoM3ZWZUxEOTBQZ09rcjBXYys0eEFIdmtnMVhZajdPT3J0MHpFVWJvLzZuTjJGd0lMOEhzWmc9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBcqmn6iHlcPI0BGSnwJYE1d9MzPK9bnaHOZk9lFQTyexPQO0PepR8jRQ3zVYTqc2mAtpep3MH2qkAqIiac9vmFBptiTdAS408lL863oq6JCKa922ci0EO0NO/j7q8CAAAQAO0SFcb1ccaIX77cujd+ERFaa3QyF85pu8HuGJKKkp6S3ANY44npxMkRFkXKvlyLtv////8AAAABAAAAAAAAAAAAAAABAAABszzAzyhxSMCZO+FKUTOV9cQK8fNZeqnOi2vw5VedZ2dLeEc7gJtXDVgTNL2lBRcMwhPCeSy5z0W3086Lp4JsUt2rsVSGsrmTA1ZwOrPRGTn9D2blXhSKrNkAku9omlqm5nUj9g/eqxKNL8xl+J5FAcIGDJe2KJAXrgA63Zg5Ry5y+VlyNGrsQec5gyGL3m8Fqiz1dOfUJ7kPyakAFz372sEeqCX01OjcKj8W+gdD63sSX4rmnO9aVne2M1N2EjqT/GehHTWBue/7lSnjg8cdg76Y5dGNYdY8EJhuKlp7ARqiJKUpPcA6qOzusPSiF6h5dbYbhp89HtC10iTP4DSnL1lMMpT4WulwcScshvOVFGFAHj7PtwwPR2EAvSwfvmJEYbAfeyEMJL+WY1LdZS9+dFkb0uWo8C3KnivTWsORS0vYmGcgpK2AVTknF0it0rV7AQ2kJ1XuVbYVMAF8mjc0dFURDwewPFCxbclWCtyHFCpIEQQwuLtCjPTeaYzBVyx55JsLn2Ubdbj/afbjUihNCVh7HJynKS4y1a76YJ9Ju6Vj2Yo1qbkSxsVouwCXpm1HyWR9tFYrHiONBNxA8fqSgGoYKLcAZzBlAjEAwcTlQMfxQqW70KnwfplmXOQi/CeaoAf6gCkfOLmJKfA3o5ZXGaypcmFB8kx3BS4YAjBp573CdX9BLzVIQv15fXhlL75Txr46SCK/kkYmvQxpGawvajLjTQR8EaJlJQXuNdw=",
            },
            {
                "id": "msg_9be7ef044f5159d7812e99131a4d75cd",
                "content": [
                    {
                        "annotations": [],
                        "text": "I’ll read `shop/validation.py` first to check how it handles zero, negative, "
                        "and non-integer quantities.",
                        "type": "output_text",
                        "logprobs": [],
                    },
                ],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "commentary",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_38b08e80239e571e8f918025be1a128c",
                "name": "read_file",
                "type": "function_call",
                "id": "fc_13ce596fb38a5b50a123a6e2357705bf",
                "namespace": None,
                "status": "completed",
            },
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tools": [
            {
                "name": "search_files",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "query": {"type": "string"},
                        "paths": {"type": "array", "items": {"type": "string"}},
                    },
                    "required": ["query", "paths"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Search source and test files for a literal term.",
                "output_schema": None,
            },
            {
                "name": "read_file",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "path": {"type": "string"},
                        "start_line": {"type": "integer", "minimum": 1},
                        "end_line": {"type": "integer", "minimum": 1},
                    },
                    "required": ["path", "start_line", "end_line"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Read a range of lines from a project file.",
                "output_schema": None,
            },
        ],
        "top_p": 0.98,
        "reasoning": {"summary": None, "effort": "high", "context": "all_turns"},
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 143,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 78, "text_tokens": None},
            "total_tokens": 452,
            "cost": None,
        },
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1792027291,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)

GPT_5_6_TERRA_TEST_CASE: Final = TranslationTestCase(
    scenario="basic",
    litellm_endpoint="/v1/responses",
    litellm_request={**RESPONSES_REQUEST, "model": "bedrock_mantle/openai.gpt-5.6-terra"},
    expected_provider_endpoint="/openai/v1/responses",
    expected_provider_headers={
        "authorization": "Bearer synthetic-bedrock-mantle-key",
        "content-type": "application/json",
    },
    expected_provider_request={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_REQUEST,
        "model": "openai.gpt-5.6-terra",
        "input": BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_INPUT,
        "instructions": RESPONSES_REQUEST["instructions"],
        "tools": RESPONSES_REQUEST["tools"],
    },
    mock_provider_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSE,
        "completed_at": 1792027296,
        "created_at": 1792027295,
        "id": "resp_2b4bqitdtukdshe6dbwxc72wu4tzjgbgo5nqe2azpevkccamxwha",
        "instructions": "You help maintain a synthetic Python project. Read the relevant files before suggesting a fix. "
        "Explain which file you need next, then call a read-only tool. Never change files. Use the "
        "responses client for this project review. Consider zero, negative and non-integer quantities "
        "before choosing the next file to inspect.",
        "model": "openai.gpt-5.6-terra",
        "output": [
            {
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeJpX16vMhsuUqP/uVtfuWta1E1ddkEa7eTm4pRCs6dffAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBejQ3QS9nd0FYVXlSWk9EUm9aUkxOWDRCSkE5QUFWdmFOeGFUVmlnUkVadEtpb0lEVkRlZ0NET2QwcGVvRk1ZOFE9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBckDtuTh3Rf5+ICZFJ9KAZsgYDTlLg1gBVDY7YvwTyexPQO0PepR8jRQ3zVYQIZ632aDn1RndzwIXGL3BxgsZyacOxdIuUi/jAwMN8xj+g0LUR7IpBpxhhW/PUcJ4CAAAQAFs2qematU6KvhLcfJq262dV/lMVbdgmfmRH+Hv8Fw4Im91UxrkD9vqufYM0I3k1XP////8AAAABAAAAAAAAAAAAAAABAAABBi+t1YoVoMFOwxnA4vZEsOt2Rptfcl+xMaPmGZuFL6MXusOn82/F/A/5JCEQrjwGL8zpRZUzjc24LEufSMVhgxJ6sRld+5yP2siwkdWMitQYC0Ocazo5ZYh4uwM+m7JHT6WBIzyDXAEWql/fPiXL/CNl77RgapLBVBd8PyqpALtZApt3fmfE8BRTLWZsu1+rouEJTicpE0mtgOYdRl0wyEhYYLpV4XSk/oBxNDdfL6GnOISnSK3MtYQ9mgoIHjKjfkjsCEILvCM2R1GiFb2Z6j13LjdeAbAG6Ad1WrjXB9V9opjCMxzffOL0VxSqrUrurbYJ7IJdvoRmlnuHixJ4cEXPbUyhIFbGVx7JxBXvLtUP9YemsZI2AGcwZQIwKBicwyYY0SSw2IVndhjAzPEudeT0mtAuI4cNZYLocLdsAmZ0CMDtqzb9L/ZgqYYuAjEAgiwJ9MrLB1A/3s9OjxkrAPWFdwARdvuq8yfJiV7hhhAiFimDIKDx1NPywAUZcoRg",
                "id": "rs_63551860cd6051cebdb9f7ede8656968",
                "summary": [],
                "type": "reasoning",
            },
            {
                "content": [
                    {
                        "annotations": [],
                        "logprobs": [],
                        "text": "I need `shop/validation.py` next to inspect the current handling of zero, "
                        "negative, and non-integer quantities.",
                        "type": "output_text",
                    },
                ],
                "id": "msg_3b2f55f61ac45802b1344d0759287853",
                "phase": "commentary",
                "role": "assistant",
                "status": "completed",
                "type": "message",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_fdd25b3193de5afb9ffba7c630ae90f2",
                "id": "fc_db3ddf54911b51569ac9c6a05f31385a",
                "name": "read_file",
                "status": "completed",
                "type": "function_call",
            },
        ],
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0},
            "output_tokens": 81,
            "output_tokens_details": {"reasoning_tokens": 16},
            "total_tokens": 390,
        },
    },
    expected_litellm_response={
        **BEDROCK_MANTLE_OPENAI_RESPONSES_RESPONSES_RESPONSE,
        "created_at": 1792027295,
        "model": "bedrock_mantle/openai.gpt-5.6-terra",
        "output": [
            {
                "id": "rs_63551860cd6051cebdb9f7ede8656968",
                "summary": [],
                "type": "reasoning",
                "content": [],
                "encrypted_content": "rsn_rru6BQHgUc/VWS5vRIAlHwIFeJpX16vMhsuUqP/uVtfuWta1E1ddkEa7eTm4pRCs6dffAF8AAQAVYXdzLWNyeXB0by1wdWJsaWMta2V5AERBejQ3QS9nd0FYVXlSWk9EUm9aUkxOWDRCSkE5QUFWdmFOeGFUVmlnUkVadEtpb0lEVkRlZ0NET2QwcGVvRk1ZOFE9PQABABFhd3Mta21zLWhpZXJhcmNoeQAKYmVybS1zdG9yZQBckDtuTh3Rf5+ICZFJ9KAZsgYDTlLg1gBVDY7YvwTyexPQO0PepR8jRQ3zVYQIZ632aDn1RndzwIXGL3BxgsZyacOxdIuUi/jAwMN8xj+g0LUR7IpBpxhhW/PUcJ4CAAAQAFs2qematU6KvhLcfJq262dV/lMVbdgmfmRH+Hv8Fw4Im91UxrkD9vqufYM0I3k1XP////8AAAABAAAAAAAAAAAAAAABAAABBi+t1YoVoMFOwxnA4vZEsOt2Rptfcl+xMaPmGZuFL6MXusOn82/F/A/5JCEQrjwGL8zpRZUzjc24LEufSMVhgxJ6sRld+5yP2siwkdWMitQYC0Ocazo5ZYh4uwM+m7JHT6WBIzyDXAEWql/fPiXL/CNl77RgapLBVBd8PyqpALtZApt3fmfE8BRTLWZsu1+rouEJTicpE0mtgOYdRl0wyEhYYLpV4XSk/oBxNDdfL6GnOISnSK3MtYQ9mgoIHjKjfkjsCEILvCM2R1GiFb2Z6j13LjdeAbAG6Ad1WrjXB9V9opjCMxzffOL0VxSqrUrurbYJ7IJdvoRmlnuHixJ4cEXPbUyhIFbGVx7JxBXvLtUP9YemsZI2AGcwZQIwKBicwyYY0SSw2IVndhjAzPEudeT0mtAuI4cNZYLocLdsAmZ0CMDtqzb9L/ZgqYYuAjEAgiwJ9MrLB1A/3s9OjxkrAPWFdwARdvuq8yfJiV7hhhAiFimDIKDx1NPywAUZcoRg",
            },
            {
                "id": "msg_3b2f55f61ac45802b1344d0759287853",
                "content": [
                    {
                        "annotations": [],
                        "text": "I need `shop/validation.py` next to inspect the current handling of zero, "
                        "negative, and non-integer quantities.",
                        "type": "output_text",
                        "logprobs": [],
                    },
                ],
                "role": "assistant",
                "status": "completed",
                "type": "message",
                "phase": "commentary",
            },
            {
                "arguments": '{"path":"shop/validation.py","start_line":1,"end_line":200}',
                "call_id": "call_fdd25b3193de5afb9ffba7c630ae90f2",
                "name": "read_file",
                "type": "function_call",
                "id": "fc_db3ddf54911b51569ac9c6a05f31385a",
                "namespace": None,
                "status": "completed",
            },
        ],
        "parallel_tool_calls": True,
        "temperature": 1.0,
        "tools": [
            {
                "name": "search_files",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "query": {"type": "string"},
                        "paths": {"type": "array", "items": {"type": "string"}},
                    },
                    "required": ["query", "paths"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Search source and test files for a literal term.",
                "output_schema": None,
            },
            {
                "name": "read_file",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "path": {"type": "string"},
                        "start_line": {"type": "integer", "minimum": 1},
                        "end_line": {"type": "integer", "minimum": 1},
                    },
                    "required": ["path", "start_line", "end_line"],
                    "additionalProperties": False,
                },
                "strict": True,
                "type": "function",
                "defer_loading": None,
                "description": "Read a range of lines from a project file.",
                "output_schema": None,
            },
        ],
        "top_p": 0.98,
        "reasoning": {"summary": None, "effort": "high", "context": "all_turns"},
        "text": {"format": {"type": "text"}, "verbosity": "medium"},
        "truncation": "disabled",
        "usage": {
            "input_tokens": 309,
            "input_tokens_details": {
                "audio_tokens": None,
                "cached_tokens": 0,
                "cached_tokens_details": None,
                "image_tokens": None,
                "text_tokens": None,
                "video_tokens": None,
                "cache_write_tokens": 0,
            },
            "output_tokens": 81,
            "output_tokens_details": {"audio_tokens": None, "reasoning_tokens": 16, "text_tokens": None},
            "total_tokens": 390,
            "cost": None,
        },
        "store": True,
        "background": False,
        "billing": {"payer": "developer"},
        "completed_at": 1792027296,
        "frequency_penalty": 0.0,
        "max_tool_calls": None,
        "presence_penalty": 0.0,
        "prompt_cache_key": None,
        "prompt_cache_options": {"mode": "implicit", "ttl": "30m"},
        "prompt_cache_retention": "in_memory",
        "safety_identifier": None,
        "service_tier": "default",
        "top_logprobs": 0,
        "moderation": None,
    },
)