WaveCut commited on
Commit
33cf820
·
verified ·
1 Parent(s): 2b228a6

Select the flagship 27B tier by default

Browse files
Files changed (2) hide show
  1. src/app/App.test.ts +7 -1
  2. src/app/App.tsx +2 -1
src/app/App.test.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { describe, expect, it } from 'vitest';
2
  import { EngineClientError } from '../engine';
3
- import { reconcileCompletionTokens, reconcileTotalTokens, requiresModelReload } from './App';
4
 
5
  function engineError(code: string): EngineClientError {
6
  return new EngineClientError({ code, message: code });
@@ -20,6 +20,12 @@ describe('App model invalidation policy', () => {
20
  });
21
  });
22
 
 
 
 
 
 
 
23
  describe('App streamed completion telemetry', () => {
24
  it('uses observed stream events when final engine usage is incomplete', () => {
25
  expect(reconcileCompletionTokens(5, 64)).toBe(64);
 
1
  import { describe, expect, it } from 'vitest';
2
  import { EngineClientError } from '../engine';
3
+ import { DEFAULT_MODEL_ID, reconcileCompletionTokens, reconcileTotalTokens, requiresModelReload } from './App';
4
 
5
  function engineError(code: string): EngineClientError {
6
  return new EngineClientError({ code, message: code });
 
20
  });
21
  });
22
 
23
+ describe('App release defaults', () => {
24
+ it('opens on the flagship tier required by the product contract', () => {
25
+ expect(DEFAULT_MODEL_ID).toBe('bonsai-27b');
26
+ });
27
+ });
28
+
29
  describe('App streamed completion telemetry', () => {
30
  it('uses observed stream events when final engine usage is incomplete', () => {
31
  expect(reconcileCompletionTokens(5, 64)).toBe(64);
src/app/App.tsx CHANGED
@@ -39,6 +39,7 @@ const CONVERSATION_ID = 'primary-field-log';
39
  const MAX_TOOL_ROUNDS = 5;
40
  const MAX_TOOL_CALLS_PER_ROUND = 4;
41
  const MAX_TOOL_CALLS_TOTAL = 12;
 
42
 
43
  const MODEL_DECOR: Record<ModelTierId, {
44
  id: ModelId;
@@ -258,7 +259,7 @@ export function App() {
258
  const [client] = useState(getEngineClient);
259
  const [manifest, setManifest] = useState<ModelManifestV2 | null>(null);
260
  const [capabilities, setCapabilities] = useState<EngineCapabilities | null>(null);
261
- const [activeModelId, setActiveModelId] = useState<ModelId>('bonsai-1.7b');
262
  const [loadedModelId, setLoadedModelId] = useState<ModelId | null>(null);
263
  const [loadingModelId, setLoadingModelId] = useState<ModelId | null>(null);
264
  const [messages, setMessages] = useState<ChatMessage[]>([]);
 
39
  const MAX_TOOL_ROUNDS = 5;
40
  const MAX_TOOL_CALLS_PER_ROUND = 4;
41
  const MAX_TOOL_CALLS_TOTAL = 12;
42
+ export const DEFAULT_MODEL_ID: ModelId = 'bonsai-27b';
43
 
44
  const MODEL_DECOR: Record<ModelTierId, {
45
  id: ModelId;
 
259
  const [client] = useState(getEngineClient);
260
  const [manifest, setManifest] = useState<ModelManifestV2 | null>(null);
261
  const [capabilities, setCapabilities] = useState<EngineCapabilities | null>(null);
262
+ const [activeModelId, setActiveModelId] = useState<ModelId>(DEFAULT_MODEL_ID);
263
  const [loadedModelId, setLoadedModelId] = useState<ModelId | null>(null);
264
  const [loadingModelId, setLoadingModelId] = useState<ModelId | null>(null);
265
  const [messages, setMessages] = useState<ChatMessage[]>([]);