Skip to content

Commit

Permalink
fix: app shows wrong toast on stopping inference (janhq#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Mar 22, 2024
1 parent 5edc24d commit b8cee87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/tensorrt-llm-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default class TensorRTLLMExtension extends LocalOAIEngine {
}

override stopInference() {
if (!this.loadedModel) return
showToast(
'Unable to Stop Inference',
'The model does not support stopping inference.'
Expand Down

0 comments on commit b8cee87

Please sign in to comment.