feat: add grok-code-fast-1 support for xAI provider (#4472)

Signed-off-by: HikaruEgashira <hikaru-egashira@c-fo.com>
This commit is contained in:
hikae
2025-10-05 06:18:31 +09:00
committed by GitHub
parent a59fbab69c
commit 76147a60d3
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -58,10 +58,12 @@ static MODEL_SPECIFIC_LIMITS: Lazy<Vec<(&'static str, usize)>> = Lazy::new(|| {
("qwen2-70b", 262_144),
("qwen2", 128_000),
("qwen3-32b", 131_072),
// xai
("grok-4", 256_000),
("grok-code-fast-1", 256_000),
("grok", 131_072),
// other
("kimi-k2", 131_072),
("grok-4", 256_000),
("grok", 131_072),
]
});
+2 -1
View File
@@ -13,8 +13,9 @@ use rmcp::model::Tool;
use serde_json::Value;
pub const XAI_API_HOST: &str = "https://api.x.ai/v1";
pub const XAI_DEFAULT_MODEL: &str = "grok-3";
pub const XAI_DEFAULT_MODEL: &str = "grok-code-fast-1";
pub const XAI_KNOWN_MODELS: &[&str] = &[
"grok-code-fast-1",
"grok-4-0709",
"grok-3",
"grok-3-fast",