mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Add GPT-6-Astra to Amazon Bedrock catalogs (#42619)
## What changed - Add `openai.gpt-6-astra` to the Amazon Bedrock model catalog. - Include its global and US cross-region variants in the Bedrock Runtime catalog. - Preserve the bundled model metadata while applying Bedrock-specific capabilities and identifiers. ## Testing - Cover catalog ordering, metadata, context-window overrides, and runtime routing variants. - Add TUI snapshots for the Bedrock model and reasoning pickers. GitOrigin-RevId: 25895174f00b85a738da5bb94ade82feaacb474c
This commit is contained in:
1 parent
32c303c197
commit
1f7b99922a
11 files changed
+198
-44
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/bedrock_catalog_tests.rs
|
||||
expression: "render_bottom_popup(&chat, 100)"
|
||||
---
|
||||
Select Reasoning Level for openai.gpt-6-astra
|
||||
|
||||
› 1. Low (default) Fast responses with lighter reasoning
|
||||
2. Medium Balances speed and reasoning depth for everyday tasks
|
||||
3. High Greater reasoning depth for complex problems
|
||||
4. Extra high Extra high reasoning depth for complex problems
|
||||
5. More reasoning… Max consumes usage limits faster
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/bedrock_catalog_tests.rs
|
||||
expression: "render_bottom_popup(&chat, 100)"
|
||||
---
|
||||
Select Model and Effort
|
||||
Access legacy models by running codex -m <model_name> or in your config.toml
|
||||
|
||||
› 1. openai.gpt-5.6-sol (current) Latest frontier agentic coding model.
|
||||
2. openai.gpt-6-astra Our most capable model for complex, demanding work.
|
||||
3. openai.gpt-5.6-terra Balanced agentic coding model for everyday work.
|
||||
4. openai.gpt-5.6-luna Fast and affordable agentic coding model.
|
||||
5. openai.gpt-5.5 Frontier model for complex coding, research, and real-world
|
||||
work.
|
||||
6. openai.gpt-5.4 Strong model for everyday coding.
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/bedrock_catalog_tests.rs
|
||||
expression: "render_bottom_popup(&chat, 100)"
|
||||
---
|
||||
Select Reasoning Level for global.openai.gpt-6-astra
|
||||
|
||||
› 1. Low (default) Fast responses with lighter reasoning
|
||||
2. Medium Balances speed and reasoning depth for everyday tasks
|
||||
3. High Greater reasoning depth for complex problems
|
||||
4. Extra high Extra high reasoning depth for complex problems
|
||||
5. More reasoning… Max consumes usage limits faster
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
---
|
||||
source: tui/src/chatwidget/tests/bedrock_catalog_tests.rs
|
||||
expression: "render_bottom_popup(&chat, 100)"
|
||||
---
|
||||
Select Model and Effort
|
||||
Access legacy models by running codex -m <model_name> or in your config.toml
|
||||
|
||||
› 1. global.openai.gpt-5.6-sol (current) Latest frontier agentic coding model.
|
||||
2. global.openai.gpt-6-astra Our most capable model for complex, demanding work.
|
||||
3. global.openai.gpt-5.6-terra Balanced agentic coding model for everyday work.
|
||||
4. global.openai.gpt-5.6-luna Fast and affordable agentic coding model.
|
||||
5. us.openai.gpt-5.6-sol Latest frontier agentic coding model.
|
||||
6. us.openai.gpt-6-astra Our most capable model for complex, demanding work.
|
||||
7. us.openai.gpt-5.6-terra Balanced agentic coding model for everyday work.
|
||||
8. us.openai.gpt-5.6-luna Fast and affordable agentic coding model.
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
@@ -234,6 +234,8 @@ mod app_server;
|
||||
mod approval_requests;
|
||||
#[path = "tests/backend_banners_tests.rs"]
|
||||
mod backend_banners_tests;
|
||||
#[path = "tests/bedrock_catalog_tests.rs"]
|
||||
mod bedrock_catalog_tests;
|
||||
#[path = "tests/collaboration_catalog_tests.rs"]
|
||||
mod collaboration_catalog_tests;
|
||||
#[path = "tests/compaction_tests.rs"]
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
//! Renders the provider catalog and Astra reasoning choices without changing the default model.
|
||||
|
||||
use super::*;
|
||||
use codex_http_client::HttpClientFactory;
|
||||
use codex_http_client::OutboundProxyPolicy;
|
||||
use codex_model_provider::create_model_provider;
|
||||
use codex_model_provider_info::ModelProviderInfo;
|
||||
use codex_models_manager::manager::RefreshStrategy;
|
||||
|
||||
#[tokio::test]
|
||||
async fn bedrock_astra_model_and_reasoning_pickers() {
|
||||
for (name, provider_info, default_model, astra_model) in [
|
||||
(
|
||||
"mantle",
|
||||
ModelProviderInfo::create_amazon_bedrock_provider(/*aws*/ None),
|
||||
"openai.gpt-5.6-sol",
|
||||
"openai.gpt-6-astra",
|
||||
),
|
||||
(
|
||||
"runtime",
|
||||
ModelProviderInfo::create_amazon_bedrock_runtime_provider(/*aws*/ None),
|
||||
"global.openai.gpt-5.6-sol",
|
||||
"global.openai.gpt-6-astra",
|
||||
),
|
||||
] {
|
||||
let presets = create_model_provider(provider_info, /*auth_manager*/ None)
|
||||
.models_manager_without_cache(/*config_model_catalog*/ None)
|
||||
.list_models(
|
||||
RefreshStrategy::Offline,
|
||||
HttpClientFactory::new(OutboundProxyPolicy::ReqwestDefault),
|
||||
)
|
||||
.await;
|
||||
let astra = presets
|
||||
.iter()
|
||||
.find(|model| model.model == astra_model)
|
||||
.expect("Astra preset")
|
||||
.clone();
|
||||
let (mut chat, _events, _ops) = make_chatwidget_manual(Some(default_model)).await;
|
||||
chat.thread_id = Some(ThreadId::new());
|
||||
chat.model_catalog = Arc::new(ModelCatalog::new(presets));
|
||||
chat.open_model_popup();
|
||||
assert_chatwidget_snapshot!(
|
||||
format!("bedrock_{name}_models"),
|
||||
render_bottom_popup(&chat, /*width*/ 100)
|
||||
);
|
||||
chat.handle_key_event(KeyEvent::from(KeyCode::Esc));
|
||||
chat.open_reasoning_popup(astra);
|
||||
assert_chatwidget_snapshot!(
|
||||
format!("bedrock_{name}_astra_reasoning"),
|
||||
render_bottom_popup(&chat, /*width*/ 100)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user