History

fix(grok): allow model changes in existing threads (#8392)

Ahmed Besic committed 2 months ago

Commit 7880a6e1 parent 7980dfd2 files · +1 −2Browse files

Unified · Split

2 files
  1. apps/server/src/provider/Layers/GrokProvider.test.ts +1 −1
  2. apps/server/src/provider/Layers/GrokProvider.ts +0 −1
apps/server/src/provider/Layers/GrokProvider.test.ts+1−1
@@ -214,7 +214,7 @@ describe("buildInitialGrokProviderSnapshot", () => { · 213 unmodified lines
214 expect(snapshot.status).toBe("warning");214 expect(snapshot.status).toBe("warning");
215 expect(snapshot.version).toBeNull();215 expect(snapshot.version).toBeNull();
216 expect(snapshot.message).toContain("Checking Grok");216 expect(snapshot.message).toContain("Checking Grok");
217 expect(snapshot.requiresNewThreadForModelChange).toBe(true);217 expect(snapshot.requiresNewThreadForModelChange).toBeUndefined();
218 }),218 }),
219 );219 );
220});220});
apps/server/src/provider/Layers/GrokProvider.ts+0−1
@@ -40,7 +40,6 @@ const GROK_PRESENTATION = { · 39 unmodified lines
40 displayName: "Grok",40 displayName: "Grok",
41 badgeLabel: "Early Access",41 badgeLabel: "Early Access",
42 showInteractionModeToggle: false,42 showInteractionModeToggle: false,
43 requiresNewThreadForModelChange: true,
44} as const;43} as const;
45const EMPTY_CAPABILITIES: ModelCapabilities = createModelCapabilities({44const EMPTY_CAPABILITIES: ModelCapabilities = createModelCapabilities({
46 optionDescriptors: [],45 optionDescriptors: [],

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t