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]

test(translation): add gpt-6-astra translation cases (#46580)

devin-ai-integration[bot]c9cca25991d1
diff --git a/tests/integration/proxy_config.yaml b/tests/integration/proxy_config.yaml
index 5d0b70c2b54..5da2fda04e1 100644
--- a/tests/integration/proxy_config.yaml
+++ b/tests/integration/proxy_config.yaml
@@ -158,6 +158,11 @@ model_list:
model: openai/gpt-6-luna
api_base: http://127.0.0.1:8191
api_key: synthetic-openai-key
+ - model_name: openai/gpt-6-astra
+ litellm_params:
+ model: openai/gpt-6-astra
+ api_base: http://127.0.0.1:8191
+ api_key: synthetic-openai-key
- model_name: openai/gpt-6.1-sol
litellm_params:
model: openai/gpt-6.1-sol
@@ -197,6 +202,12 @@ model_list:
api_base: http://127.0.0.1:8191
api_key: synthetic-azure-key
api_version: "2025-04-01-preview"
+ - model_name: azure/gpt-6-astra
+ litellm_params:
+ model: azure/gpt-6-astra
+ api_base: http://127.0.0.1:8191
+ api_key: synthetic-azure-key
+ api_version: "2025-04-01-preview"
- model_name: azure/gpt-6.1-sol
litellm_params:
model: azure/gpt-6.1-sol
diff --git a/tests/integration/translation/chat_completions/bases/azure.py b/tests/integration/translation/chat_completions/bases/azure.py
index 523cf982a50..e7eb937ea39 100644
--- a/tests/integration/translation/chat_completions/bases/azure.py
+++ b/tests/integration/translation/chat_completions/bases/azure.py
@@ -766,3 +766,157 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"system_fingerprint": None,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/chat/completions",
+ litellm_request={
+ "model": "azure/gpt-6-astra",
+ "max_tokens": 64,
+ "messages": [
+ {"role": "system", "content": "You are a terse assistant."},
+ {"role": "user", "content": "Say hello."},
+ ],
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/openai/deployments/gpt-6-astra/chat/completions?api-version=2025-04-01-preview",
+ expected_provider_headers={
+ "content-type": "application/json",
+ "api-key": "synthetic-azure-key",
+ "authorization": "Bearer synthetic-azure-key",
+ },
+ expected_provider_request={
+ "messages": [
+ {"role": "system", "content": "You are a terse assistant."},
+ {"role": "user", "content": "Say hello."},
+ ],
+ "model": "gpt-6-astra",
+ "max_completion_tokens": 64,
+ "stream": False,
+ },
+ mock_provider_response={
+ "choices": [
+ {
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "protected_material_code": {"detected": False, "filtered": False},
+ "protected_material_text": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ },
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": None,
+ "message": {"annotations": [], "content": "Hello!", "refusal": None, "role": "assistant"},
+ }
+ ],
+ "created": 1792022229,
+ "id": "chatcmpl-EZ38HKM9wxIe1d1BEJdXW3rW8ceOB",
+ "model": "gpt-6-astra-2026-09-03",
+ "object": "chat.completion",
+ "prompt_filter_results": [
+ {
+ "prompt_index": 0,
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "jailbreak": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ },
+ }
+ ],
+ "routing": {"serving_pipereplica": "d20260921004409-52a9ff06-prefill-r12-dp0-prefill"},
+ "service_tier": "default",
+ "system_fingerprint": None,
+ "usage": {
+ "completion_tokens": 5,
+ "completion_tokens_details": {
+ "accepted_prediction_tokens": 0,
+ "audio_tokens": 0,
+ "reasoning_tokens": 0,
+ "rejected_prediction_tokens": 0,
+ },
+ "latency_checkpoint": {
+ "engine_tbt_ms": 12,
+ "engine_ttft_ms": 311,
+ "engine_ttlt_ms": 384,
+ "pre_inference_ms": 149,
+ "service_tbt_ms": 6,
+ "service_ttft_ms": 948,
+ "service_ttlt_ms": 977,
+ "user_visible_ttft_ms": 799,
+ },
+ "prompt_tokens": 19,
+ "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 0, "cached_tokens": 0},
+ "total_tokens": 24,
+ },
+ },
+ expected_litellm_response={
+ "id": "chatcmpl-EZ38HKM9wxIe1d1BEJdXW3rW8ceOB",
+ "created": 1792022229,
+ "model": "azure/gpt-6-astra",
+ "object": "chat.completion",
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {"content": "Hello!", "role": "assistant", "annotations": [], "refusal": None},
+ "provider_specific_fields": {
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "protected_material_code": {"detected": False, "filtered": False},
+ "protected_material_text": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ }
+ },
+ "logprobs": None,
+ }
+ ],
+ "usage": {
+ "completion_tokens": 5,
+ "prompt_tokens": 19,
+ "total_tokens": 24,
+ "completion_tokens_details": {
+ "accepted_prediction_tokens": 0,
+ "audio_tokens": 0,
+ "reasoning_tokens": 0,
+ "rejected_prediction_tokens": 0,
+ },
+ "prompt_tokens_details": {
+ "audio_tokens": 0,
+ "cached_tokens": 0,
+ "cache_write_tokens": 0,
+ "cache_creation_tokens": 0,
+ },
+ "latency_checkpoint": {
+ "engine_tbt_ms": 12,
+ "engine_ttft_ms": 311,
+ "engine_ttlt_ms": 384,
+ "pre_inference_ms": 149,
+ "service_tbt_ms": 6,
+ "service_ttft_ms": 948,
+ "service_ttlt_ms": 977,
+ "user_visible_ttft_ms": 799,
+ },
+ },
+ "service_tier": "default",
+ "prompt_filter_results": [
+ {
+ "prompt_index": 0,
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "jailbreak": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ },
+ }
+ ],
+ "routing": {"serving_pipereplica": "d20260921004409-52a9ff06-prefill-r12-dp0-prefill"},
+ "system_fingerprint": None,
+ },
+)
diff --git a/tests/integration/translation/chat_completions/bases/openai.py b/tests/integration/translation/chat_completions/bases/openai.py
index 8b712352c29..4c33f5f02e4 100644
--- a/tests/integration/translation/chat_completions/bases/openai.py
+++ b/tests/integration/translation/chat_completions/bases/openai.py
@@ -461,3 +461,95 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"system_fingerprint": None,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/chat/completions",
+ litellm_request={
+ "model": "openai/gpt-6-astra",
+ "max_tokens": 64,
+ "messages": [
+ {"role": "system", "content": "You are a terse assistant."},
+ {"role": "user", "content": "Say hello."},
+ ],
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/chat/completions",
+ expected_provider_headers={
+ "content-type": "application/json",
+ "authorization": "Bearer synthetic-openai-key",
+ },
+ expected_provider_request={
+ "messages": [
+ {"role": "system", "content": "You are a terse assistant."},
+ {"role": "user", "content": "Say hello."},
+ ],
+ "model": "gpt-6-astra",
+ "max_completion_tokens": 64,
+ },
+ mock_provider_response={
+ "id": "chatcmpl-EZ37nFHKO9u4Sc7LwqNWTR0iHbIwn",
+ "object": "chat.completion",
+ "created": 1792022199,
+ "model": "gpt-6-astra",
+ "choices": [
+ {
+ "index": 0,
+ "message": {"role": "assistant", "content": "Hello!", "refusal": None, "annotations": []},
+ "finish_reason": "stop",
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 19,
+ "completion_tokens": 5,
+ "total_tokens": 24,
+ "prompt_tokens_details": {"cached_tokens": 0, "cache_write_tokens": 0, "audio_tokens": 0},
+ "completion_tokens_details": {
+ "reasoning_tokens": 0,
+ "audio_tokens": 0,
+ "accepted_prediction_tokens": 0,
+ "rejected_prediction_tokens": 0,
+ },
+ },
+ "service_tier": "default",
+ "system_fingerprint": None,
+ },
+ expected_litellm_response={
+ "id": "chatcmpl-EZ37nFHKO9u4Sc7LwqNWTR0iHbIwn",
+ "created": 1792022199,
+ "model": "openai/gpt-6-astra",
+ "object": "chat.completion",
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Hello!",
+ "role": "assistant",
+ "refusal": None,
+ "annotations": [],
+ },
+ "provider_specific_fields": {},
+ }
+ ],
+ "usage": {
+ "completion_tokens": 5,
+ "prompt_tokens": 19,
+ "total_tokens": 24,
+ "completion_tokens_details": {
+ "accepted_prediction_tokens": 0,
+ "audio_tokens": 0,
+ "reasoning_tokens": 0,
+ "rejected_prediction_tokens": 0,
+ },
+ "prompt_tokens_details": {
+ "audio_tokens": 0,
+ "cached_tokens": 0,
+ "cache_write_tokens": 0,
+ "cache_creation_tokens": 0,
+ },
+ },
+ "service_tier": "default",
+ "system_fingerprint": None,
+ },
+)
diff --git a/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_azure.py b/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_azure.py
index b388d303228..635d75571b2 100644
--- a/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_azure.py
+++ b/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_azure.py
@@ -7,6 +7,7 @@ from integration.translation.chat_completions.bases.azure import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)
diff --git a/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_openai.py b/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_openai.py
index daa54612208..d73155f218e 100644
--- a/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_openai.py
+++ b/tests/integration/translation/chat_completions/basic/test_chat_completions_basic_openai.py
@@ -7,6 +7,7 @@ from integration.translation.chat_completions.bases.openai import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)
diff --git a/tests/integration/translation/messages/bases/azure.py b/tests/integration/translation/messages/bases/azure.py
index 6f0b924edae..d7239e209b6 100644
--- a/tests/integration/translation/messages/bases/azure.py
+++ b/tests/integration/translation/messages/bases/azure.py
@@ -481,3 +481,99 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"stop_details": None,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/messages",
+ litellm_request={
+ "model": "azure/gpt-6-astra",
+ "max_tokens": 64,
+ "system": "You are a terse assistant.",
+ "messages": [{"role": "user", "content": "Say hello."}],
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/openai/deployments/gpt-6-astra/chat/completions?api-version=2025-04-01-preview",
+ expected_provider_headers={
+ "content-type": "application/json",
+ "api-key": "synthetic-azure-key",
+ "authorization": "Bearer synthetic-azure-key",
+ },
+ expected_provider_request={
+ "messages": [
+ {"role": "system", "content": "You are a terse assistant."},
+ {"role": "user", "content": "Say hello."},
+ ],
+ "model": "gpt-6-astra",
+ "max_completion_tokens": 64,
+ },
+ mock_provider_response={
+ "choices": [
+ {
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "protected_material_code": {"detected": False, "filtered": False},
+ "protected_material_text": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ },
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": None,
+ "message": {"annotations": [], "content": "Hello!", "refusal": None, "role": "assistant"},
+ }
+ ],
+ "created": 1792022239,
+ "id": "chatcmpl-EZ38RBBvY1sBntKZmxDuJDJetT1Tq",
+ "model": "gpt-6-astra-2026-09-03",
+ "object": "chat.completion",
+ "prompt_filter_results": [
+ {
+ "prompt_index": 0,
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "jailbreak": {"detected": False, "filtered": False},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ },
+ }
+ ],
+ "routing": {"serving_pipereplica": "d20260921004409-52a9ff06-prefill-r28-dp0-prefill"},
+ "service_tier": "default",
+ "system_fingerprint": None,
+ "usage": {
+ "completion_tokens": 5,
+ "completion_tokens_details": {
+ "accepted_prediction_tokens": 0,
+ "audio_tokens": 0,
+ "reasoning_tokens": 0,
+ "rejected_prediction_tokens": 0,
+ },
+ "latency_checkpoint": {
+ "engine_tbt_ms": 12,
+ "engine_ttft_ms": 546,
+ "engine_ttlt_ms": 619,
+ "pre_inference_ms": 44,
+ "service_tbt_ms": 14,
+ "service_ttft_ms": 1023,
+ "service_ttlt_ms": 1092,
+ "user_visible_ttft_ms": 979,
+ },
+ "prompt_tokens": 19,
+ "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 0, "cached_tokens": 0},
+ "total_tokens": 24,
+ },
+ },
+ expected_litellm_response={
+ "id": "chatcmpl-EZ38RBBvY1sBntKZmxDuJDJetT1Tq",
+ "type": "message",
+ "role": "assistant",
+ "model": "azure/gpt-6-astra",
+ "stop_sequence": None,
+ "usage": {"input_tokens": 19, "output_tokens": 5},
+ "content": [{"type": "text", "text": "Hello!"}],
+ "stop_reason": "end_turn",
+ "stop_details": None,
+ },
+)
diff --git a/tests/integration/translation/messages/bases/openai.py b/tests/integration/translation/messages/bases/openai.py
index a027ae27bd2..87fbd35cd8e 100644
--- a/tests/integration/translation/messages/bases/openai.py
+++ b/tests/integration/translation/messages/bases/openai.py
@@ -481,3 +481,98 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"stop_details": None,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/messages",
+ litellm_request={
+ "model": "openai/gpt-6-astra",
+ "max_tokens": 64,
+ "system": "You are a terse assistant.",
+ "messages": [{"role": "user", "content": "Say hello."}],
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/responses",
+ expected_provider_headers={"content-type": "application/json", "authorization": "Bearer synthetic-openai-key"},
+ expected_provider_request={
+ "model": "gpt-6-astra",
+ "input": [{"type": "message", "role": "user", "content": [{"type": "input_text", "text": "Say hello."}]}],
+ "include": ["reasoning.encrypted_content"],
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ },
+ mock_provider_response={
+ "id": "resp_023f789546179f0e006ad016c0984487d08dba1308aa780ef6",
+ "object": "response",
+ "created_at": 1792022208,
+ "status": "completed",
+ "access_programs": None,
+ "background": False,
+ "billing": {"payer": "developer"},
+ "completed_at": 1792022211,
+ "error": None,
+ "frequency_penalty": 0.0,
+ "incomplete_details": None,
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ "max_tool_calls": None,
+ "model": "gpt-6-astra",
+ "moderation": None,
+ "output": [
+ {
+ "id": "msg_023f789546179f0e006ad016c2ef2c87d0b9d8f5ef59e691cd",
+ "type": "message",
+ "status": "completed",
+ "content": [{"type": "output_text", "annotations": [], "logprobs": [], "text": "Hello!"}],
+ "phase": "final_answer",
+ "role": "assistant",
+ }
+ ],
+ "parallel_tool_calls": True,
+ "presence_penalty": 0.0,
+ "previous_response_id": None,
+ "prompt_cache_key": None,
+ "prompt_cache_retention": "24h",
+ "reasoning": {"context": "all_turns", "effort": "medium", "mode": "standard", "summary": None},
+ "safety_identifier": None,
+ "service_tier": "default",
+ "store": True,
+ "temperature": 1.0,
+ "text": {"format": {"type": "text"}, "verbosity": "medium"},
+ "tool_choice": "auto",
+ "tool_usage": {
+ "image_gen": {
+ "input_tokens": 0,
+ "input_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "output_tokens": 0,
+ "output_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "total_tokens": 0,
+ },
+ "web_search": {"num_requests": 0},
+ },
+ "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,
+ "metadata": {},
+ },
+ expected_litellm_response={
+ "id": "resp_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOm9wZW5haTttb2RlbF9pZDphODRkZDk3MTcwNzk0ZDlhYzQ5ODhlZWMzOTJmN2Q5YjQwN2MyNDY1YmJhZTA4MGE1ZGYzMThlOTViOTA2NzlkO3Jlc3BvbnNlX2lkOnJlc3BfMDIzZjc4OTU0NjE3OWYwZTAwNmFkMDE2YzA5ODQ0ODdkMDhkYmExMzA4YWE3ODBlZjY=",
+ "type": "message",
+ "role": "assistant",
+ "model": "openai/gpt-6-astra",
+ "stop_sequence": None,
+ "usage": {"input_tokens": 19, "output_tokens": 6},
+ "content": [{"type": "text", "text": "Hello!"}],
+ "stop_reason": "end_turn",
+ "stop_details": None,
+ },
+)
diff --git a/tests/integration/translation/messages/basic/test_messages_basic_azure.py b/tests/integration/translation/messages/basic/test_messages_basic_azure.py
index fbca832ad87..2f76ccc3028 100644
--- a/tests/integration/translation/messages/basic/test_messages_basic_azure.py
+++ b/tests/integration/translation/messages/basic/test_messages_basic_azure.py
@@ -7,6 +7,7 @@ from integration.translation.messages.bases.azure import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)
diff --git a/tests/integration/translation/messages/basic/test_messages_basic_openai.py b/tests/integration/translation/messages/basic/test_messages_basic_openai.py
index a73a7838dbc..d96308e9d92 100644
--- a/tests/integration/translation/messages/basic/test_messages_basic_openai.py
+++ b/tests/integration/translation/messages/basic/test_messages_basic_openai.py
@@ -7,6 +7,7 @@ from integration.translation.messages.bases.openai import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)
diff --git a/tests/integration/translation/responses/bases/azure.py b/tests/integration/translation/responses/bases/azure.py
index 458a66abb52..1b27e198186 100644
--- a/tests/integration/translation/responses/bases/azure.py
+++ b/tests/integration/translation/responses/bases/azure.py
@@ -1047,3 +1047,212 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"top_logprobs": 0,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/responses",
+ litellm_request={
+ "model": "azure/gpt-6-astra",
+ "max_output_tokens": 64,
+ "instructions": "You are a terse assistant.",
+ "input": "Say hello.",
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/openai/responses?api-version=2025-04-01-preview",
+ expected_provider_headers={"content-type": "application/json", "api-key": "synthetic-azure-key"},
+ expected_provider_request={
+ "model": "gpt-6-astra",
+ "input": "Say hello.",
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ },
+ mock_provider_response={
+ "id": "resp_0619fdc05c5504ee006ad01712e1988190bcc283ea6c2aa02b",
+ "object": "response",
+ "created_at": 1792022290,
+ "status": "completed",
+ "background": False,
+ "completed_at": 1792022292,
+ "content_filters": [
+ {
+ "blocked": False,
+ "source_type": "prompt",
+ "content_filter_raw": [],
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "jailbreak": {"detected": False, "filtered": False},
+ },
+ "content_filter_offsets": {"start_offset": 0, "end_offset": 788, "check_offset": 0},
+ },
+ {
+ "blocked": False,
+ "source_type": "completion",
+ "content_filter_raw": [],
+ "content_filter_results": {
+ "protected_material_text": {"detected": False, "filtered": False},
+ "protected_material_code": {"detected": False, "filtered": False},
+ "hate": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ },
+ "content_filter_offsets": {"start_offset": 0, "end_offset": 6, "check_offset": 0},
+ },
+ ],
+ "error": None,
+ "frequency_penalty": 0.0,
+ "incomplete_details": None,
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ "max_tool_calls": None,
+ "model": "gpt-6-astra",
+ "moderation": None,
+ "output": [
+ {
+ "id": "msg_0619fdc05c5504ee006ad01713e44881908c0b1c9723b75e0e",
+ "type": "message",
+ "status": "completed",
+ "content": [{"type": "output_text", "annotations": [], "logprobs": [], "text": "Hello!"}],
+ "phase": "final_answer",
+ "role": "assistant",
+ }
+ ],
+ "parallel_tool_calls": True,
+ "presence_penalty": 0.0,
+ "previous_response_id": None,
+ "prompt_cache_key": None,
+ "prompt_cache_retention": "24h",
+ "reasoning": {"context": "all_turns", "effort": "medium", "mode": "standard", "summary": None},
+ "safety_identifier": None,
+ "service_tier": "default",
+ "store": True,
+ "temperature": 1.0,
+ "text": {"format": {"type": "text"}, "verbosity": "medium"},
+ "tool_choice": "auto",
+ "tool_usage": {
+ "image_gen": {
+ "input_tokens": 0,
+ "input_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "output_tokens": 0,
+ "output_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "total_tokens": 0,
+ },
+ "web_search": {"num_requests": 0},
+ },
+ "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,
+ "metadata": {},
+ },
+ expected_litellm_response={
+ "id": ANY,
+ "created_at": 1792022290,
+ "error": None,
+ "incomplete_details": None,
+ "instructions": "You are a terse assistant.",
+ "metadata": {},
+ "model": "azure/gpt-6-astra",
+ "object": "response",
+ "output": [
+ {
+ "id": "msg_0619fdc05c5504ee006ad01713e44881908c0b1c9723b75e0e",
+ "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": {"context": "all_turns", "effort": "medium", "mode": "standard", "summary": 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,
+ "completed_at": 1792022292,
+ "content_filters": [
+ {
+ "blocked": False,
+ "source_type": "prompt",
+ "content_filter_raw": [],
+ "content_filter_results": {
+ "hate": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ "jailbreak": {"detected": False, "filtered": False},
+ },
+ "content_filter_offsets": {"start_offset": 0, "end_offset": 788, "check_offset": 0},
+ },
+ {
+ "blocked": False,
+ "source_type": "completion",
+ "content_filter_raw": [],
+ "content_filter_results": {
+ "protected_material_text": {"detected": False, "filtered": False},
+ "protected_material_code": {"detected": False, "filtered": False},
+ "hate": {"filtered": False, "severity": "safe"},
+ "sexual": {"filtered": False, "severity": "safe"},
+ "violence": {"filtered": False, "severity": "safe"},
+ "self_harm": {"filtered": False, "severity": "safe"},
+ },
+ "content_filter_offsets": {"start_offset": 0, "end_offset": 6, "check_offset": 0},
+ },
+ ],
+ "frequency_penalty": 0.0,
+ "max_tool_calls": None,
+ "moderation": None,
+ "presence_penalty": 0.0,
+ "prompt_cache_key": None,
+ "prompt_cache_retention": "24h",
+ "safety_identifier": None,
+ "service_tier": "default",
+ "tool_usage": {
+ "image_gen": {
+ "input_tokens": 0,
+ "input_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "output_tokens": 0,
+ "output_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "total_tokens": 0,
+ },
+ "web_search": {"num_requests": 0},
+ },
+ "top_logprobs": 0,
+ },
+)
diff --git a/tests/integration/translation/responses/bases/openai.py b/tests/integration/translation/responses/bases/openai.py
index dae053c9de0..2b120de6fe7 100644
--- a/tests/integration/translation/responses/bases/openai.py
+++ b/tests/integration/translation/responses/bases/openai.py
@@ -782,3 +782,158 @@ GPT_6_1_SOL_TEST_CASE: Final = TranslationTestCase(
"top_logprobs": 0,
},
)
+
+GPT_6_ASTRA_TEST_CASE: Final = TranslationTestCase(
+ scenario="basic",
+ litellm_endpoint="/v1/responses",
+ litellm_request={
+ "model": "openai/gpt-6-astra",
+ "max_output_tokens": 64,
+ "instructions": "You are a terse assistant.",
+ "input": "Say hello.",
+ "cache": {"no-cache": True},
+ },
+ expected_provider_endpoint="/responses",
+ expected_provider_headers={"content-type": "application/json", "authorization": "Bearer synthetic-openai-key"},
+ expected_provider_request={
+ "model": "gpt-6-astra",
+ "input": "Say hello.",
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ },
+ mock_provider_response={
+ "id": "resp_09642d0a94fde0c6006ad016cb1e4c87d0bf52dd7767aa00c2",
+ "object": "response",
+ "created_at": 1792022219,
+ "status": "completed",
+ "access_programs": None,
+ "background": False,
+ "billing": {"payer": "developer"},
+ "completed_at": 1792022220,
+ "error": None,
+ "frequency_penalty": 0.0,
+ "incomplete_details": None,
+ "instructions": "You are a terse assistant.",
+ "max_output_tokens": 64,
+ "max_tool_calls": None,
+ "model": "gpt-6-astra",
+ "moderation": None,
+ "output": [
+ {
+ "id": "msg_09642d0a94fde0c6006ad016cbe8bc87d0a9da8d51688a029e",
+ "type": "message",
+ "status": "completed",
+ "content": [{"type": "output_text", "annotations": [], "logprobs": [], "text": "Hello!"}],
+ "phase": "final_answer",
+ "role": "assistant",
+ }
+ ],
+ "parallel_tool_calls": True,
+ "presence_penalty": 0.0,
+ "previous_response_id": None,
+ "prompt_cache_key": None,
+ "prompt_cache_retention": "24h",
+ "reasoning": {"context": "all_turns", "effort": "medium", "mode": "standard", "summary": None},
+ "safety_identifier": None,
+ "service_tier": "default",
+ "store": True,
+ "temperature": 1.0,
+ "text": {"format": {"type": "text"}, "verbosity": "medium"},
+ "tool_choice": "auto",
+ "tool_usage": {
+ "image_gen": {
+ "input_tokens": 0,
+ "input_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "output_tokens": 0,
+ "output_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "total_tokens": 0,
+ },
+ "web_search": {"num_requests": 0},
+ },
+ "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,
+ "metadata": {},
+ },
+ expected_litellm_response={
+ "id": ANY,
+ "created_at": 1792022219,
+ "error": None,
+ "incomplete_details": None,
+ "instructions": "You are a terse assistant.",
+ "metadata": {},
+ "model": "openai/gpt-6-astra",
+ "object": "response",
+ "output": [
+ {
+ "id": "msg_09642d0a94fde0c6006ad016cbe8bc87d0a9da8d51688a029e",
+ "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": {"context": "all_turns", "effort": "medium", "mode": "standard", "summary": 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,
+ "access_programs": None,
+ "background": False,
+ "billing": {"payer": "developer"},
+ "completed_at": 1792022220,
+ "frequency_penalty": 0.0,
+ "max_tool_calls": None,
+ "moderation": None,
+ "presence_penalty": 0.0,
+ "prompt_cache_key": None,
+ "prompt_cache_retention": "24h",
+ "safety_identifier": None,
+ "service_tier": "default",
+ "tool_usage": {
+ "image_gen": {
+ "input_tokens": 0,
+ "input_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "output_tokens": 0,
+ "output_tokens_details": {"image_tokens": 0, "text_tokens": 0},
+ "total_tokens": 0,
+ },
+ "web_search": {"num_requests": 0},
+ },
+ "top_logprobs": 0,
+ },
+)
diff --git a/tests/integration/translation/responses/basic/test_responses_basic_azure.py b/tests/integration/translation/responses/basic/test_responses_basic_azure.py
index 2a894ad68a5..b7f42da50f5 100644
--- a/tests/integration/translation/responses/basic/test_responses_basic_azure.py
+++ b/tests/integration/translation/responses/basic/test_responses_basic_azure.py
@@ -7,6 +7,7 @@ from integration.translation.responses.bases.azure import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)
diff --git a/tests/integration/translation/responses/basic/test_responses_basic_openai.py b/tests/integration/translation/responses/basic/test_responses_basic_openai.py
index 89541a818ec..8a303e4c06f 100644
--- a/tests/integration/translation/responses/basic/test_responses_basic_openai.py
+++ b/tests/integration/translation/responses/basic/test_responses_basic_openai.py
@@ -7,6 +7,7 @@ from integration.translation.responses.bases.openai import (
GPT_5_6_LUNA_TEST_CASE,
GPT_5_6_SOL_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
)
from integration.translation.runner import assert_translation
@@ -20,6 +21,7 @@ from integration.translation.runner import assert_translation
GPT_5_6_LUNA_TEST_CASE,
GPT_6_LUNA_TEST_CASE,
GPT_6_1_SOL_TEST_CASE,
+ GPT_6_ASTRA_TEST_CASE,
],
ids=lambda case: case.id,
)