fix: change of prompt api #72
Annotations
5 errors
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.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.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#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
|
|
This job failed
Loading