Răsfoiți Sursa

test(llm): pin Messages e2e to its official endpoint

Yichen Jiang 1 lună în urmă
părinte
comite
6ad0ddb899
1 a modificat fișierele cu 5 adăugiri și 2 ștergeri
  1. 5 2
      packages/llm/llm-deepseek/tests/messages/adapter.e2e.ts

+ 5 - 2
packages/llm/llm-deepseek/tests/messages/adapter.e2e.ts

@@ -1,4 +1,4 @@
-/** Real Messages protocol round trips; credentialless CI skips these provider checks. */
+/** Real Messages round trips against the official protocol root; skip without credentials. */
 import { mkdtemp, readFile, rm } from 'node:fs/promises'
 import { tmpdir } from 'node:os'
 import { join } from 'node:path'
@@ -22,7 +22,10 @@ async function boot(inHistory = false) {
   const ctx = new Context()
   cleanups.push(() => ctx.fiber.dispose())
   await ctx.plugin(LlmRuntime)
-  await ctx.plugin(Messages, { protocol: 'messages', maxTokens: 4096,
+  await ctx.plugin(Messages, {
+    protocol: 'messages',
+    baseURL: Messages.MESSAGES_BASE_URL,
+    maxTokens: 4096,
     ...inHistory ? { models: [{ id: 'deepseek-v4-flash', systemPromptUpdate: 'in-history' as const }] } : {},
   })
   return ctx