Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy
Rust
allow gpt-6-astra (#129)
Oscar Lozano55bf0b5818b4
diff --git a/src/providers/codex/translate/model_allowlist.rs b/src/providers/codex/translate/model_allowlist.rsindex bb4c062..40729b9 100644--- a/src/providers/codex/translate/model_allowlist.rs+++ b/src/providers/codex/translate/model_allowlist.rs@@ -14,6 +14,7 @@ pub const ALLOWED_MODELS: &[&str] = &["gpt-5.6-luna","gpt-5.6-sol","gpt-5.6-terra",+ "gpt-6-astra",];pub const MODEL_ALIASES: &[(&str, &str)] = &[@@ -117,7 +118,10 @@ pub fn assert_allowed_model(model: &str) -> Result<(), ModelNotAllowedError> {}pub fn uses_responses_lite(model: &str) -> bool {- matches!(model, "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra")+ matches!(+ model,+ "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra"+ )}/// `gpt-5.6-luna` exists only behind the Responses Lite lane; the full@@ -207,6 +211,7 @@ mod tests {assert!(assert_allowed_model("gpt-5.4").is_ok());assert!(assert_allowed_model("gpt-5.6-sol").is_ok());assert!(assert_allowed_model("gpt-5.6-terra").is_ok());+ assert!(assert_allowed_model("gpt-6-astra").is_ok());assert!(assert_allowed_model("gpt-5.6-luna").is_ok());}diff --git a/src/registry.rs b/src/registry.rsindex 77a9cf6..ae05277 100644--- a/src/registry.rs+++ b/src/registry.rs@@ -47,6 +47,7 @@ pub(crate) const CODEX_MODELS: &[&str] = &["gpt-5.6-luna","gpt-5.6-sol","gpt-5.6-terra",+ "gpt-6-astra",];pub(crate) const KIMI_MODELS: &[&str] = &["kimi-for-coding", "kimi-k2.6", "kimi-k3", "k2.6", "k3"];