crazypoo / ptchatgpt Goto Github PK
View Code? Open in Web Editor NEWI thik that is a full function iOS ChatGPT app
I thik that is a full function iOS ChatGPT app
收到文本回复的效果是和chatGpt那种,流式回复的键入的效果么?
OSSSpeech.swift里编译报错了,4个错误。其中546行: if let speechRecognizer, !speechRecognizer.isAvailable {
报错:Variable binding in a condition requires an initializer
511行: input.installTap(onBus: bus, bufferSize: 8192, format: recordingFormat) { [weak self] (buffer, ) -> Void in
报错:Unable to infer type of a closure parameter '' in the current context、Unable to infer type of a closure parameter 'buffer' in the current context
大佬能不能直接把ipa包发到release里啊,这边用虚拟机的Mac来build实在太崩溃了
文件: PTChatGPT/PTChatGPT.xcworkspace/xcshareddata/swiftpm/Package.resolved
"state" : {
"branch" : "master",
"revision" : "114bf79025ecbf2662c5bf87b414a2fd6cca2ca3"
}
需要更新为
"state" : {
"branch" : "master",
"revision" : "feea042263459a9f7d298dfdff92f27dc7b1e155"
}
struct ChatView: View {
let messages = [
ChatMessage(message: "Hello!", isMine: false),
ChatMessage(message: "Hi there!", isMine: true),
ChatMessage(message: "How are you?", isMine: false),
ChatMessage(message: "I'm doing well, thank you.", isMine: true),
ChatMessage(message: "That's great to hear!", isMine: false)
]
let myName = "Me"
let helperName = "Helper"
let myAvatar = "avatar1"
let helperAvatar = "avatar2"
var body: some View {
List(messages) { message in
HStack {
if message.isMine {
Spacer()
VStack(alignment: .trailing) {
HStack {
Text(myName)
Image(myAvatar)
.resizable()
.frame(width: 40, height: 40)
.background(.blue)
.cornerRadius(20)
}
Spacer()
Text(message.message)
.padding()
.background(Color.purple)
.foregroundColor(.black)
.cornerRadius(10)
.padding(.horizontal, 50)
}
} else {
VStack(alignment: .leading) {
HStack {
Image(helperAvatar)
.resizable()
.frame(width: 40, height: 40)
.background(.green)
.cornerRadius(20)
Text(helperName)
}
Spacer()
Text(message.message)
.padding()
.background(Color.red)
.foregroundColor(.black)
.cornerRadius(10)
.padding(.horizontal, 50)
}
Spacer()
}
}
}
}
}
struct ChatView_Previews: PreviewProvider {
static var previews: some View {
ChatView()
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.