Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/providers/codex/translate/model_allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ pub const ALLOWED_MODELS: &[&str] = &[
"gpt-6-sol",
"gpt-6.1-sol",
"gpt-6.1-terra",
"gpt-6.2-sol",
"gpt-6.2-astra",
];

pub const MODEL_ALIASES: &[(&str, &str)] = &[
Expand Down Expand Up @@ -207,6 +209,8 @@ pub fn uses_responses_lite(model: &str) -> bool {
| "gpt-6-sol"
| "gpt-6.1-sol"
| "gpt-6.1-terra"
| "gpt-6.2-sol"
| "gpt-6.2-astra"
) || (!ALLOWED_MODELS.contains(&model)
&& catalog_model(model)
.is_some_and(|entry| entry.supported_in_api && entry.use_responses_lite))
Expand All @@ -224,6 +228,8 @@ pub fn uses_responses_lite_with_full_lane(model: &str, full_lane: bool) -> bool
| "gpt-6-sol"
| "gpt-6.1-sol"
| "gpt-6.1-terra"
| "gpt-6.2-sol"
| "gpt-6.2-astra"
)
{
return false;
Expand Down Expand Up @@ -272,6 +278,8 @@ mod tests {
"gpt-6-sol",
"gpt-6.1-sol",
"gpt-6.1-terra",
"gpt-6.2-sol",
"gpt-6.2-astra",
] {
assert!(uses_responses_lite_with_full_lane(model, false), "{model}");
assert!(!uses_responses_lite_with_full_lane(model, true), "{model}");
Expand Down
6 changes: 6 additions & 0 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ pub(crate) const CODEX_MODELS: &[&str] = &[
"gpt-6-sol",
"gpt-6.1-sol",
"gpt-6.1-terra",
"gpt-6.2-sol",
"gpt-6.2-astra",
];

pub(crate) const KIMI_MODELS: &[&str] = &["kimi-for-coding", "kimi-k2.6", "kimi-k3", "k2.6", "k3"];
Expand Down Expand Up @@ -486,6 +488,10 @@ mod tests {
"gpt-6.1-sol-fast",
"gpt-6.1-terra",
"gpt-6.1-terra-fast",
"gpt-6.2-sol",
"gpt-6.2-sol-fast",
"gpt-6.2-astra",
"gpt-6.2-astra-fast",
] {
assert_eq!(
registry.provider_for_model(model, None).unwrap().name(),
Expand Down