Skip to content

Commit fa865da

Browse files
Merge branch 'main' of https://github.com/DarinVerheijke/Roo-Code into featherless-provider
2 parents 14aaf26 + 613abe0 commit fa865da

File tree

101 files changed

+1658
-435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1658
-435
lines changed

.changeset/v3.25.18-2.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
- Fix: respect enableReasoningEffort setting when determining reasoning usage (#7048 by @ikbencasdoei, PR by @app/roomote)
6+
- Fix: prevent duplicate LM Studio models with case-insensitive deduplication (#6954 by @fbuechler, PR by @daniel-lxs)
7+
- Add support for Sonic model (thanks @mrubens!)
8+
- Feat: simplify ask_followup_question prompt documentation (thanks @daniel-lxs!)
9+
- Feat: simple read_file tool for single-file-only models (thanks @daniel-lxs!)

.changeset/v3.25.18-3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
- Fix: Add missing zaiApiKey and doubaoApiKey to SECRET_STATE_KEYS (#7082 by @app/roomote)
6+
- Feat: Add new models and update configurations for vscode-lm (thanks @NaccOll!)

.changeset/v3.25.18.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
- Fix: respect enableReasoningEffort setting when determining reasoning usage (#7048 by @ikbencasdoei, PR by @app/roomote)
6+
- Fix: prevent duplicate LM Studio models with case-insensitive deduplication (#6954 by @fbuechler, PR by @daniel-lxs)
7+
- Add support for Sonic model (thanks @mrubens!)
8+
- Feat: simplify ask_followup_question prompt documentation (thanks @daniel-lxs!)

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ POSTHOG_API_KEY=key-goes-here
33
# Roo Code Cloud / Local Development
44
CLERK_BASE_URL=https://epic-chamois-85.clerk.accounts.dev
55
ROO_CODE_API_URL=http://localhost:3000
6+
ROO_CODE_PROVIDER_URL=http://localhost:8080/proxy/v1

packages/types/src/global-settings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export const SECRET_STATE_KEYS = [
178178
"openAiNativeApiKey",
179179
"cerebrasApiKey",
180180
"deepSeekApiKey",
181+
"doubaoApiKey",
181182
"moonshotApiKey",
182183
"mistralApiKey",
183184
"unboundApiKey",
@@ -193,6 +194,7 @@ export const SECRET_STATE_KEYS = [
193194
"codebaseIndexMistralApiKey",
194195
"huggingFaceApiKey",
195196
"sambaNovaApiKey",
197+
"zaiApiKey",
196198
"fireworksApiKey",
197199
"featherlessApiKey",
198200
"ioIntelligenceApiKey",

packages/types/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * from "./message.js"
1212
export * from "./mode.js"
1313
export * from "./model.js"
1414
export * from "./provider-settings.js"
15+
export * from "./single-file-read-models.js"
1516
export * from "./task.js"
1617
export * from "./todo.js"
1718
export * from "./telemetry.js"

packages/types/src/provider-settings.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const providerNames = [
4848
"fireworks",
4949
"featherless",
5050
"io-intelligence",
51+
"roo",
5152
] as const
5253

5354
export const providerNamesSchema = z.enum(providerNames)
@@ -293,6 +294,10 @@ const ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
293294
ioIntelligenceApiKey: z.string().optional(),
294295
})
295296

297+
const rooSchema = apiModelIdProviderModelSchema.extend({
298+
// No additional fields needed - uses cloud authentication
299+
})
300+
296301
const defaultSchema = z.object({
297302
apiProvider: z.undefined(),
298303
})
@@ -330,6 +335,7 @@ export const providerSettingsSchemaDiscriminated = z.discriminatedUnion("apiProv
330335
fireworksSchema.merge(z.object({ apiProvider: z.literal("fireworks") })),
331336
featherlessSchema.merge(z.object({ apiProvider: z.literal("featherless") })),
332337
ioIntelligenceSchema.merge(z.object({ apiProvider: z.literal("io-intelligence") })),
338+
rooSchema.merge(z.object({ apiProvider: z.literal("roo") })),
333339
defaultSchema,
334340
])
335341

@@ -367,6 +373,7 @@ export const providerSettingsSchema = z.object({
367373
...fireworksSchema.shape,
368374
...featherlessSchema.shape,
369375
...ioIntelligenceSchema.shape,
376+
...rooSchema.shape,
370377
...codebaseIndexProviderSchema.shape,
371378
})
372379

packages/types/src/providers/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ export * from "./xai.js"
2525
export * from "./doubao.js"
2626
export * from "./zai.js"
2727
export * from "./fireworks.js"
28+
export * from "./roo.js"
2829
export * from "./featherless.js"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { ModelInfo } from "../model.js"
2+
3+
// Roo provider with single model
4+
export type RooModelId = "roo/sonic"
5+
6+
export const rooDefaultModelId: RooModelId = "roo/sonic"
7+
8+
export const rooModels = {
9+
"roo/sonic": {
10+
maxTokens: 16_384,
11+
contextWindow: 262_144,
12+
supportsImages: false,
13+
supportsPromptCache: true,
14+
inputPrice: 0,
15+
outputPrice: 0,
16+
description:
17+
"A stealth reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: prompts and completions are logged by the model creator and used to improve the model.)",
18+
},
19+
} as const satisfies Record<string, ModelInfo>

packages/types/src/providers/vscode-llm.ts

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ export const vscodeLlmModels = {
101101
supportsToolCalling: true,
102102
maxInputTokens: 81638,
103103
},
104+
"claude-4-sonnet": {
105+
contextWindow: 128000,
106+
supportsImages: true,
107+
supportsPromptCache: false,
108+
inputPrice: 0,
109+
outputPrice: 0,
110+
family: "claude-sonnet-4",
111+
version: "claude-sonnet-4",
112+
name: "Claude Sonnet 4",
113+
supportsToolCalling: true,
114+
maxInputTokens: 111836,
115+
},
104116
"gemini-2.0-flash-001": {
105117
contextWindow: 127827,
106118
supportsImages: true,
@@ -114,7 +126,7 @@ export const vscodeLlmModels = {
114126
maxInputTokens: 127827,
115127
},
116128
"gemini-2.5-pro": {
117-
contextWindow: 63830,
129+
contextWindow: 128000,
118130
supportsImages: true,
119131
supportsPromptCache: false,
120132
inputPrice: 0,
@@ -123,10 +135,10 @@ export const vscodeLlmModels = {
123135
version: "gemini-2.5-pro-preview-03-25",
124136
name: "Gemini 2.5 Pro (Preview)",
125137
supportsToolCalling: true,
126-
maxInputTokens: 63830,
138+
maxInputTokens: 108637,
127139
},
128140
"o4-mini": {
129-
contextWindow: 111446,
141+
contextWindow: 128000,
130142
supportsImages: false,
131143
supportsPromptCache: false,
132144
inputPrice: 0,
@@ -135,10 +147,10 @@ export const vscodeLlmModels = {
135147
version: "o4-mini-2025-04-16",
136148
name: "o4-mini (Preview)",
137149
supportsToolCalling: true,
138-
maxInputTokens: 111446,
150+
maxInputTokens: 111452,
139151
},
140152
"gpt-4.1": {
141-
contextWindow: 111446,
153+
contextWindow: 128000,
142154
supportsImages: true,
143155
supportsPromptCache: false,
144156
inputPrice: 0,
@@ -147,7 +159,31 @@ export const vscodeLlmModels = {
147159
version: "gpt-4.1-2025-04-14",
148160
name: "GPT-4.1 (Preview)",
149161
supportsToolCalling: true,
150-
maxInputTokens: 111446,
162+
maxInputTokens: 111452,
163+
},
164+
"gpt-5-mini": {
165+
contextWindow: 128000,
166+
supportsImages: true,
167+
supportsPromptCache: false,
168+
inputPrice: 0,
169+
outputPrice: 0,
170+
family: "gpt-5-mini",
171+
version: "gpt-5-mini",
172+
name: "GPT-5 mini (Preview)",
173+
supportsToolCalling: true,
174+
maxInputTokens: 108637,
175+
},
176+
"gpt-5": {
177+
contextWindow: 128000,
178+
supportsImages: true,
179+
supportsPromptCache: false,
180+
inputPrice: 0,
181+
outputPrice: 0,
182+
family: "gpt-5",
183+
version: "gpt-5",
184+
name: "GPT-5 (Preview)",
185+
supportsToolCalling: true,
186+
maxInputTokens: 108637,
151187
},
152188
} as const satisfies Record<
153189
string,

0 commit comments

Comments
 (0)