Skip to content

Commit 97d91f3

Browse files
authored
add gpt41 to known models (#679)
1 parent 159aa4f commit 97d91f3

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

refact-agent/engine/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lto = true
66

77
[package]
88
name = "refact-lsp"
9-
version = "0.10.16"
9+
version = "0.10.17"
1010
edition = "2021"
1111
build = "build.rs"
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

refact-agent/engine/src/known_models.rs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,33 @@ pub const KNOWN_MODELS: &str = r####"
382382
"gpt-4o-mini-2024-07-18"
383383
]
384384
},
385+
"gpt-4.1": {
386+
"n_ctx": 200000,
387+
"supports_tools": true,
388+
"supports_multimodality": true,
389+
"supports_agent": true,
390+
"supports_scratchpads": {
391+
"PASSTHROUGH": {
392+
}
393+
},
394+
"similar_models": [
395+
"gpt-4.1-2025-04-14"
396+
]
397+
},
398+
"gpt-4.1-mini": {
399+
"n_ctx": 200000,
400+
"supports_tools": true,
401+
"supports_multimodality": true,
402+
"supports_scratchpads": {
403+
"PASSTHROUGH": {
404+
}
405+
},
406+
"similar_models": [
407+
"gpt-4.1-nano",
408+
"gpt-4.1-mini-2025-04-14",
409+
"gpt-4.1-nano-2025-04-14"
410+
]
411+
},
385412
"chatgpt-4o": {
386413
"n_ctx": 128000,
387414
"supports_tools": false,
@@ -831,6 +858,13 @@ pub const KNOWN_MODELS: &str = r####"
831858
"openai/gpt-4o": "Xenova/gpt-4o",
832859
"chatgpt-4o": "Xenova/gpt-4o",
833860
861+
"gpt-4.1": "Xenova/gpt-4o",
862+
"gpt-4.1-2025-04-14": "Xenova/gpt-4o",
863+
"gpt-4.1-mini": "Xenova/gpt-4o",
864+
"gpt-4.1-mini-2025-04-14": "Xenova/gpt-4o",
865+
"gpt-4.1-nano": "Xenova/gpt-4o",
866+
"gpt-4.1-nano-2025-04-14": "Xenova/gpt-4o",
867+
834868
"claude-3-5-sonnet": "Xenova/claude-tokenizer",
835869
"claude-3-5-haiku": "Xenova/claude-tokenizer",
836870
"claude-3-5-haiku-20241022": "Xenova/claude-tokenizer",

0 commit comments

Comments
 (0)