generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing final image recognition workflow (#72)
# Fixing final image recognition workflow ## ♻️ Current situation & Problem image recognition was not leading to chatwindow properly chatwindow was not logging food correctly ## ⚙️ Release Notes - Fixed navigationstack/navigationview ordering - Changed system prompt - Fixed function calls and separated the two chatwindows completely).
- Loading branch information
Showing
7 changed files
with
92 additions
and
43 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
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,29 @@ | ||
// | ||
// LLMOnboardingView.swift | ||
// Stronger | ||
// | ||
// Created by Kevin Zhu on 03/02/24. | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
|
||
import SpeziLLMOpenAI | ||
import SpeziOnboarding | ||
import SwiftUI | ||
|
||
struct LLMOnboardingViewCamera: View { | ||
@Binding var showOnboarding: Bool | ||
|
||
var body: some View { | ||
OnboardingStack { | ||
LLMOpenAITokenOnboardingCamera(showOnboarding: $showOnboarding) | ||
} | ||
.interactiveDismissDisabled(showOnboarding) | ||
} | ||
} | ||
|
||
#Preview { | ||
LLMOnboardingViewCamera(showOnboarding: .constant(false)) | ||
} |
26 changes: 26 additions & 0 deletions
26
Stronger/ProteinTracker/LLMOpenAITokenOnboardingCamera.swift
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,26 @@ | ||
// | ||
// This source file is part of the Stanford Spezi open source project | ||
// | ||
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
|
||
import SpeziLLMOpenAI | ||
import SpeziOnboarding | ||
import SwiftUI | ||
|
||
/// Onboarding view that gets the OpenAI token from the user. | ||
struct LLMOpenAITokenOnboardingCamera: View { | ||
@Binding var showOnboarding: Bool | ||
|
||
var body: some View { | ||
LLMOpenAIAPITokenOnboardingStep { | ||
showOnboarding = false | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
LLMOpenAITokenOnboardingCamera(showOnboarding: .constant(false)) | ||
} |
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