We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi I got your project to work but I'm curious where exactly I'd pass in optional params for model, temperature, etc.
import SwiftUI import AIReceiptScanner struct ContentView: View { @State private var scanStatus: ScanStatus = .idle let apiKey = "sk-proj-..." var body: some View { VStack { ReceiptPickerScannerView(apiKey: apiKey, scanStatus: $scanStatus) .onChange(of: scanStatus) { _, newValue in switch newValue { case .pickingImage: print("Picking image") case .prompting(let image): print("prompting gpt-4 with receipt image") case .success(let scanResult): print("Success with \(scanResult)") case .failure(let error, let image): print("Error \(error.localizedDescription)") case .idle: print("Idle state") } } } .padding() } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi I got your project to work but I'm curious where exactly I'd pass in optional params for model, temperature, etc.
The text was updated successfully, but these errors were encountered: