Skip to content

fix: change of prompt api #72

fix: change of prompt api

fix: change of prompt api #72

Triggered via push August 8, 2024 05:53
Status Failure
Total duration 29s
Artifacts

ci.yml

on: push
build-and-test-coverage
19s
build-and-test-coverage
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/language-model.test.ts > language-model > should do generate text: src/language-model.ts#L82
TypeError: ai.textModelInfo is not a function ❯ ChromeAIChatLanguageModel.getSession src/language-model.ts:82:37 ❯ ChromeAIChatLanguageModel.doGenerate src/language-model.ts:165:21 ❯ fn node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/generate-text/generate-text.ts:189:30 ❯ node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/telemetry/record-span.ts:18:22 ❯ _retryWithExponentialBackoff node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/util/retry-with-exponential-backoff.ts:36:12 ❯ fn node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/generate-text/generate-text.ts:179:32 ❯ node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/telemetry/record-span.ts:18:22 ❯ src/language-model.test.ts:68:5
src/language-model.test.ts > language-model > should do stream text: src/language-model.ts#L82
TypeError: ai.textModelInfo is not a function ❯ ChromeAIChatLanguageModel.getSession src/language-model.ts:82:37 ❯ ChromeAIChatLanguageModel.doStream src/language-model.ts:193:21 ❯ fn node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/generate-text/stream-text.ts:194:23 ❯ node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/telemetry/record-span.ts:18:22 ❯ _retryWithExponentialBackoff node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/util/retry-with-exponential-backoff.ts:36:12 ❯ fn node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/generate-text/stream-text.ts:182:11 ❯ node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/telemetry/record-span.ts:18:22 ❯ src/language-model.test.ts:111:20
src/language-model.test.ts > language-model > should do generate object: src/language-model.ts#L82
TypeError: ai.textModelInfo is not a function ❯ ChromeAIChatLanguageModel.getSession src/language-model.ts:82:37 ❯ ChromeAIChatLanguageModel.doGenerate src/language-model.ts:165:21 ❯ _retryWithExponentialBackoff node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/util/retry-with-exponential-backoff.ts:36:12 ❯ Module.generateObject node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/ai/core/generate-object/generate-object.ts:118:30 ❯ src/language-model.test.ts:128:24
src/language-model.test.ts > language-model > should throw when tool call: src/language-model.test.ts#L146
AssertionError: expected error to be instance of UnsupportedFunctionalityError - Expected: [Function UnsupportedFunctionalityError] + Received: [TypeError: ai.textModelInfo is not a function] ❯ src/language-model.test.ts:146:5
build-and-test-coverage
Process completed with exit code 1.