mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Preserve configured Flex tiers without catalog or fast-mode support (#46230)
## Why An explicit `service_tier = "flex"` could be dropped when fast mode was disabled or the model catalog did not advertise Flex, even though Flex is an API request option. ## What changed - Preserve configured `flex` through core session settings, TUI tier resolution, and request construction regardless of fast-mode or catalog support. - Omit `service_tier` from Amazon Bedrock requests, including with custom catalogs, because Bedrock only supports the implicit default tier. ## Testing Add regression coverage for Flex configured at startup or through thread settings, connected thread startup, and TUI turn submission. Update review coverage to expect Flex with fast mode disabled, and verify that both Bedrock providers omit `service_tier`. GitOrigin-RevId: 98f2761bdd780603839ebfec75cb983a5d55e554
This commit is contained in:
1 parent
e269f2164c
commit
7abf2a3b5c
10 files changed
+224
-28
No files matched your search
@@ -717,7 +717,7 @@ async fn unsupported_configured_service_tier_warns_at_session_start() -> Result<
|
||||
let mut builder = test_codex()
|
||||
.with_model(model_slug)
|
||||
.with_config(move |config| {
|
||||
config.service_tier = Some(ServiceTier::Flex.request_value().to_string());
|
||||
config.service_tier = Some(ServiceTier::Fast.request_value().to_string());
|
||||
config.model_catalog = Some(ModelsResponse {
|
||||
models: vec![model],
|
||||
});
|
||||
@@ -737,7 +737,7 @@ async fn unsupported_configured_service_tier_warns_at_session_start() -> Result<
|
||||
};
|
||||
assert_eq!(
|
||||
warning.message,
|
||||
"Configured service tier `flex` is not advertised as supported for model `test-no-tier-model` and will be omitted from requests."
|
||||
"Configured service tier `priority` is not advertised as supported for model `test-no-tier-model` and will be omitted from requests."
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user