Skip to content

Move cancel function implementation from promptcontext to globals #612

Move cancel function implementation from promptcontext to globals

Move cancel function implementation from promptcontext to globals #612

Triggered via pull request September 7, 2024 14:18
Status Success
Total duration 1m 6s
Artifacts 1

genai-pr-commit-review.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
build: packages/core/src/globals.ts#L66
You are throwing a new `CancelError` in the `cancel` function but it's not being caught anywhere. This could lead to an unhandled promise rejection. Please make sure to catch this error where the `cancel` function is being called. 🚀
build: packages/core/src/promptcontext.ts#L224
The `cancel` function has been removed from the `PromptContext`. If this function was being used elsewhere in the code, it could lead to a `TypeError` of `cancel` is not a function. Please ensure that the `cancel` function is not being used elsewhere in the code or provide an alternative implementation. 🧐
build: packages/core/src/types/prompt_template.d.ts#L2276
The `cancel` method has been removed from the `PromptContext` interface. This change could break existing implementations that rely on this method. Please ensure that this change is intentional and that all implementations of this interface have been updated accordingly. 🕵️‍♀️

Artifacts

Produced during runtime
Name Size
genai-results Expired
20.5 KB