Skip to content

使用useMemo优化sendMessage中的消息生成 #792

使用useMemo优化sendMessage中的消息生成

使用useMemo优化sendMessage中的消息生成 #792

Triggered via pull request September 4, 2024 06:41
Status Failure
Total duration 53s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test: __test__/demo.test.tsx#L1
Cannot find module '../../../tests/demo' or its corresponding type declarations.
test: __test__/index.test.tsx#L3
Cannot find module '..' or its corresponding type declarations.
test: __test__/index.test.tsx#L5
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
test: __test__/index.test.tsx#L6
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
test: __test__/index.test.tsx#L14
Cannot find name 'expect'.
test: __test__/index.test.tsx#L17
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
test: __test__/index.test.tsx#L20
Cannot find name 'expect'.
test: api/chat.ts#L26
Argument of type 'ChatCompletion' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.
test: docs/guide/demos/controled-servers-push.tsx#L21
Type 'ChatMessage<Record<string, any>> | { id: string; content: string; role: string; }' is not assignable to type 'ChatMessage<Record<string, any>>'.
test: docs/guide/demos/controled-servers-push.tsx#L22
Type '{ id: string; content: string; role: string; }' is missing the following properties from type 'ChatMessage<Record<string, any>>': createAt, updateAt
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/