Skip to content

Commit 9acabb3

Browse files
authored
Merge branch 'RooCodeInc:main' into add-custom-model-name-embeding-index
2 parents 526f3af + 503c758 commit 9acabb3

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

.changeset/thick-streets-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": minor
3+
---
4+
5+
Update `xaiModels` and `xaiDefaultModelId` in `src/shared/api.ts`

src/integrations/editor/DiffViewProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class DiffViewProvider {
278278
updatedDocument.positionAt(updatedDocument.getText().length),
279279
)
280280

281-
edit.replace(updatedDocument.uri, fullRange, this.originalContent ?? "")
281+
edit.replace(updatedDocument.uri, fullRange, this.stripAllBOMs(this.originalContent ?? ""))
282282

283283
// Apply the edit and save, since contents shouldnt have changed
284284
// this won't show in local history unless of course the user made

src/shared/api.ts

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ export const litellmDefaultModelInfo: ModelInfo = {
12641264
// xAI
12651265
// https://docs.x.ai/docs/api-reference
12661266
export type XAIModelId = keyof typeof xaiModels
1267-
export const xaiDefaultModelId: XAIModelId = "grok-3-beta"
1267+
export const xaiDefaultModelId: XAIModelId = "grok-3"
12681268
export const xaiModels = {
12691269
"grok-3-beta": {
12701270
maxTokens: 8192,
@@ -1304,6 +1304,44 @@ export const xaiModels = {
13041304
description: "xAI's Grok-3 mini fast beta model with 131K context window",
13051305
supportsReasoningEffort: true,
13061306
},
1307+
"grok-3": {
1308+
maxTokens: 8192,
1309+
contextWindow: 131072,
1310+
supportsImages: false,
1311+
supportsPromptCache: false,
1312+
inputPrice: 3.0,
1313+
outputPrice: 15.0,
1314+
description: "xAI's Grok-3 model with 131K context window",
1315+
},
1316+
"grok-3-fast": {
1317+
maxTokens: 8192,
1318+
contextWindow: 131072,
1319+
supportsImages: false,
1320+
supportsPromptCache: false,
1321+
inputPrice: 5.0,
1322+
outputPrice: 25.0,
1323+
description: "xAI's Grok-3 fast model with 131K context window",
1324+
},
1325+
"grok-3-mini": {
1326+
maxTokens: 8192,
1327+
contextWindow: 131072,
1328+
supportsImages: false,
1329+
supportsPromptCache: false,
1330+
inputPrice: 0.3,
1331+
outputPrice: 0.5,
1332+
description: "xAI's Grok-3 mini model with 131K context window",
1333+
supportsReasoningEffort: true,
1334+
},
1335+
"grok-3-mini-fast": {
1336+
maxTokens: 8192,
1337+
contextWindow: 131072,
1338+
supportsImages: false,
1339+
supportsPromptCache: false,
1340+
inputPrice: 0.6,
1341+
outputPrice: 4.0,
1342+
description: "xAI's Grok-3 mini fast model with 131K context window",
1343+
supportsReasoningEffort: true,
1344+
},
13071345
"grok-2-latest": {
13081346
maxTokens: 8192,
13091347
contextWindow: 131072,

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
11951195
// This is copied from `handlePrimaryButtonClick`, which we used
11961196
// to call from `autoApprove`. I'm not sure how many of these
11971197
// things are actually needed.
1198-
setInputValue("")
1199-
setSelectedImages([])
12001198
setSendingDisabled(true)
12011199
setClineAsk(undefined)
12021200
setEnableButtons(false)

0 commit comments

Comments
 (0)