Просмотр исходного кода

test(llm): point the keyless onboarding case at a listed model

The case verifies first-boot catalog browsing and an actionable
MISSING_CREDENTIAL, so it follows the default catalog instead of an
unlisted id whose route only proves pass-through.
Tianyi Cui 1 неделя назад
Родитель
Сommit
a55b08233f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/llm/llm-deepseek/tests/adapter.spec.ts

+ 2 - 2
packages/llm/llm-deepseek/tests/adapter.spec.ts

@@ -2174,10 +2174,10 @@ describe('plugin registration and config', () => {
     // only the request itself needs a key.
     // only the request itself needs a key.
     expect(ctx.llm.listProviders()).toEqual([{ id: 'deepseek-official', name: 'DeepSeek' }])
     expect(ctx.llm.listProviders()).toEqual([{ id: 'deepseek-official', name: 'DeepSeek' }])
     await expect(ctx.llm.listModels('deepseek-official')).resolves.toHaveLength(2)
     await expect(ctx.llm.listModels('deepseek-official')).resolves.toHaveLength(2)
-    const first = await assemble(ctx, { model: 'deepseek-v4-flash', messages: [] })
+    const first = await assemble(ctx, { model: 'deepseek-flash', messages: [] })
     expect(first.finish).toMatchObject({ kind: 'error', failure: { code: 'MISSING_CREDENTIAL' } })
     expect(first.finish).toMatchObject({ kind: 'error', failure: { code: 'MISSING_CREDENTIAL' } })
     // The guidance leads with the managed credential store.
     // The guidance leads with the managed credential store.
-    const second = await assemble(ctx, { model: 'deepseek-v4-flash', messages: [] })
+    const second = await assemble(ctx, { model: 'deepseek-flash', messages: [] })
     expect(second.finish.kind).toBe('error')
     expect(second.finish.kind).toBe('error')
     if (second.finish.kind !== 'error') throw new Error('expected an error finish')
     if (second.finish.kind !== 'error') throw new Error('expected an error finish')
     // The guidance names both places a credential can come from, and nothing
     // The guidance names both places a credential can come from, and nothing