Update defImages function to support multiple file types and handle Blob conversion #624
Annotations
3 errors
build:
packages/core/src/runpromptcontext.ts#L238
You are creating an async function inside a loop. This can lead to performance issues as each async function returns a promise which is then awaited. Consider refactoring this to use Promise.all to handle all promises at once.
|
build:
packages/core/src/runpromptcontext.ts#L266
You are using async functions but not handling potential errors with a try/catch block. This can lead to unhandled promise rejections which can crash the Node.js process.
|
build:
packages/core/src/types/prompt_template.d.ts#L1542
The change in the type of the 'files' parameter from 'StringLike | Buffer | Blob' to 'ElementOrArray<string | WorkspaceFile | Buffer | Blob>' is a breaking change. If there are any existing consumers of this function that pass a 'StringLike' value, this change will break their code.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
genai-results
Expired
|
18.7 KB |
|