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
2 changes: 1 addition & 1 deletion refact-agent/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lto = true

[package]
name = "refact-lsp"
version = "0.10.12"
version = "0.10.13"
edition = "2021"
build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
20 changes: 9 additions & 11 deletions refact-agent/engine/src/known_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ pub const KNOWN_MODELS: &str = r####"
"claude-3-5-haiku-20241022",
"claude-3-opus",
"claude-3-5-sonnet",
"claude-3-5-sonnet-20241022"
"claude-3-5-sonnet-20241022",
"claude-3-7-sonnet",
"claude-3-7-sonnet-20250219"
]
},
"groq-llama-3.1-8b": {
Expand Down Expand Up @@ -436,7 +438,11 @@ pub const KNOWN_MODELS: &str = r####"
"supports_agent": true,
"supports_scratchpads": {
"PASSTHROUGH": {}
}
},
"similar_models": [
"claude-3-7-sonnet",
"claude-3-7-sonnet-20250219"
]
},
"claude-3-5-haiku": {
"n_ctx": 16384,
Expand All @@ -450,15 +456,6 @@ pub const KNOWN_MODELS: &str = r####"
"claude-3-5-haiku-20241022"
]
},
"claude-3-5-haiku-20241022": {
"n_ctx": 16384,
"supports_tools": true,
"supports_multimodality": false,
"supports_agent": false,
"supports_scratchpads": {
"PASSTHROUGH": {}
}
},
"gemini-2.0-flash-exp": {
"n_ctx": 128000,
"supports_tools": true,
Expand Down Expand Up @@ -792,6 +789,7 @@ pub const KNOWN_MODELS: &str = r####"
"claude-3-5-haiku-20241022": "Xenova/claude-tokenizer",
"claude-3-5-sonnet-20240620": "Xenova/claude-tokenizer",
"claude-3-5-sonnet-20241022": "Xenova/claude-tokenizer",
"claude-3-7-sonnet": "Xenova/claude-tokenizer",

"groq-llama-3.1-8b": "Xenova/Meta-Llama-3.1-Tokenizer",
"cerebras-llama3.1-8b": "Xenova/Meta-Llama-3.1-Tokenizer",
Expand Down
2 changes: 1 addition & 1 deletion refact-agent/gui/src/features/Login/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const LoginPage: React.FC = () => {
<ul>
<li>
Chat with your codebase powered by top models (e.g. Claude
3.5 Sonnet & GPT-4o with 32k context).
3.7 Sonnet, OpenAI GPT-4o and o3-mini).
</li>
<li>Unlimited Code Completions (powered by Qwen2.5).</li>
<li>Codebase-aware vector database (RAG).</li>
Expand Down
1 change: 1 addition & 0 deletions refact-agent/gui/src/hooks/useCapsForToolUse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const PAID_AGENT_LIST = [
"grok-2-1212",
"grok-beta",
"gemini-2.0-flash-exp",
"claude-3-7-sonnet",
];

export function useCapsForToolUse() {
Expand Down
11 changes: 11 additions & 0 deletions refact-server/refact_known_models/passthrough.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@
"pp1000t_generated": 15_000, # $15.00 / 1M tokens (2024 oct)
"filter_caps": ["chat", "tools", "completion"],
},
"claude-3-7-sonnet": {
"backend": "litellm",
"provider": "anthropic",
"tokenizer_path": "Xenova/claude-tokenizer",
"resolve_as": "anthropic/claude-3-7-sonnet-20250219",
"T": 200_000,
"T_out": 4096,
"pp1000t_prompt": 3_000, # $3.00 / 1M tokens (2025 feb)
"pp1000t_generated": 15_000, # $15.00 / 1M tokens (2025 feb)
"filter_caps": ["chat", "tools", "completion"],
},

# Groq models
"groq-llama-3.1-8b": {
Expand Down
2 changes: 1 addition & 1 deletion refact-server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PyPackage:
"refact_webgui": PyPackage(
requires=["aiohttp", "aiofiles", "cryptography", "fastapi>=0.111.0", "giturlparse", "pydantic>=2",
"starlette==0.37.2", "uvicorn", "uvloop", "termcolor", "python-multipart", "more_itertools",
"scyllapy==1.3.0", "pandas>=2.0.3", "litellm>=1.55.3"],
"scyllapy==1.3.0", "pandas>=2.0.3", "litellm>=1.61.15"],
requires_packages=["refact_known_models", "refact_utils"],
data=["webgui/static/*", "webgui/static/components/modals/*",
"webgui/static/dashboards/*", "webgui/static/assets/*", "webgui/static/utils/*",
Expand Down
Loading