Skip to content

Commit

Permalink
Cancel inferencing when closing chat view
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Jan 23, 2025
1 parent cc9d10a commit 3b4b1ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ struct MultipleResourcesChatView: View {
let isProcessing = multipleResourceInterpreter.llm?.state.representation == .processing

Check warning on line 60 in LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift

View check run for this annotation

Codecov / codecov/patch

LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift#L59-L60

Added lines #L59 - L60 were not covered by tests
ToolbarItem(placement: .cancellationAction) {
Button("Close") {
multipleResourceInterpreter.llm?.cancel()
dismiss()

Check warning on line 64 in LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift

View check run for this annotation

Codecov / codecov/patch

LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift#L62-L64

Added lines #L62 - L64 were not covered by tests
}
.disabled(isProcessing)
}
ToolbarItem(placement: .primaryAction) {
Button(
Expand Down

0 comments on commit 3b4b1ba

Please sign in to comment.