Add GPT-6.1 Terra to model catalogs (#57293)

## What changed

- Add `gpt-6.1-terra` to the bundled catalog and GCP Vertex model picker.
- Add `openai.gpt-6.1-terra` to Amazon Bedrock catalogs, including Global and US cross-region runtime variants.
- Use `gpt-6.1-terra` as GCP's preferred memory consolidation model.

## Testing

Extend catalog, model picker, thread startup, and Vertex request tests to cover GPT-6.1 Terra.

GitOrigin-RevId: edb3be3c4286c191349cdee742005ed3c67029e8
This commit is contained in:
BOZHANG-OAI
2026-10-26 22:13:14 +00:00
committed by copyberry
parent b52a272cff
commit 126a0ee92e
15 changed files with 315 additions and 77 deletions
+8 -3
View File
@@ -94,8 +94,12 @@ async fn vertex_credential_file_is_retained_when_refreshing_after_401() -> Resul
Ok(())
}
#[test_case("gpt-6.1-sol"; "sol")]
#[test_case("gpt-6.1-terra"; "terra")]
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn vertex_requests_use_command_auth_with_namespaces_and_tool_search() -> Result<()> {
async fn vertex_requests_use_command_auth_with_namespaces_and_tool_search(
model: &str,
) -> Result<()> {
skip_if_no_network!(Ok(()));
let server = responses::start_mock_server().await;
@@ -116,13 +120,14 @@ async fn vertex_requests_use_command_auth_with_namespaces_and_tool_search() -> R
provider.auth = Some(auth_fixture.auth());
let mut test = test_codex()
.with_model_info_override("gpt-6.1-sol", |model| {
.with_model_info_override(model, |model| {
model.use_responses_lite = true;
model.tool_mode = Some(ToolMode::CodeModeOnly);
model.apply_patch_tool_type = Some(ApplyPatchToolType::Freeform);
model.supports_search_tool = true;
model.multi_agent_version = Some(MultiAgentVersion::V2);
})
.with_model(model)
.with_config(move |config| {
config.model_provider_id = GCP_PROVIDER_ID.to_string();
config.model_provider = provider;
@@ -183,7 +188,7 @@ async fn vertex_requests_use_command_auth_with_namespaces_and_tool_search() -> R
"Vertex request must omit Responses Lite additional_tools inputs"
);
let body = request.body_json();
assert_eq!(body["model"], "gpt-6.1-sol");
assert_eq!(body["model"], model);
assert_eq!(request.instructions_text(), "Vertex test instructions");
let tools = body["tools"]
.as_array()
@@ -18,4 +18,9 @@ expression: "models.iter().map(|model|\n(&model.model, model.show_in_picker, mod
true,
false,
),
(
"gpt-6.1-terra",
true,
false,
),
]