Skip to content

Conversation

@StrongMonkey
Copy link
Contributor

@StrongMonkey StrongMonkey commented Mar 28, 2025

gptscript-ai/gptscript#956

Using gptscript sdk to terminate thread and get proper message back. suggested by darren https://acorn-io.slack.com/archives/C07P0EZR917/p1743120573464899

#1982

if err := i.gptClient.AbortRun(ctx, run); err != nil {
return false, err
}
go timeoutAfter(ctx, cancel, 30*time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment about why this is necessary?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked for the 30 second thing as a fail safe if the proper abort was to not work for some reason. And yeah add a comment about that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a comment

Signed-off-by: Daishan Peng <daishan@acorn.io>
@StrongMonkey StrongMonkey merged commit 2af9829 into obot-platform:main Mar 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants