Update defImages function to support multiple file types and handle Blob conversion #625
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 application.
|
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>' in the 'defImages' function is a breaking change. This can cause issues in the existing code where this function is used.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
genai-results
Expired
|
18.5 KB |
|