generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final LLM Chat UI with Greeting and Function Calling. ## ♻️ Current situation & Problem The basic LLM chat infrastructure was done, but it did not include a welcome greeting and did not have function calling capabilities to summarize the chat into a concise chief complaint. ## ⚙️ Release Notes Added function calling to the LLMInteraction struct's LLM model (currently commented out, as the function is not yet complete), and enabled a greeting message upon opening the app. Fine tuned the system prompt. ## 📚 Documentation NA ## ✅ Testing NA ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [X] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: Nina Boord <[email protected]>
- Loading branch information
Showing
5 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// SummaryView.swift | ||
// Intake | ||
// | ||
// Created by Nick Riedman on 2/2/24. | ||
// | ||
// This source file is part of the Intake based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct SummaryView: View { | ||
let chiefComplaint: String | ||
|
||
var body: some View { | ||
VStack { | ||
Text(chiefComplaint) | ||
.padding() | ||
.multilineTextAlignment(.center) | ||
} | ||
.navigationTitle("Summary") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,6 +381,9 @@ | |
}, | ||
"Summarize your surgical history." : { | ||
|
||
}, | ||
"Summary" : { | ||
|
||
}, | ||
"Surgical History" : { | ||
|
||
|