diff --git a/README.md b/README.md
index 13310d0..38823f7 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ OpenAI ChatGPT app for iOS, iPadOS, macoS
**更新说明**
目前 v2.0:
-- Cloudflare cookie support
+- support OpenAI API key
**支持功能**
@@ -74,15 +74,22 @@ OpenAI ChatGPT app for iOS, iPadOS, macoS
- [New Issue](https://github.com/37iOS/iChatGPT/issues/new/choose)
-### 四、效果示例
+### 四、Contributors
+
+* [@iHTCboy](https://github.com/iHTCboy)
+* [@AlphaGogoo (BWQ)](https://github.com/AlphaGogoo)
+
+
+### 五、效果示例
+
-### 五、特别鸣谢
+### 六、特别鸣谢
- [OpenAI ChatGPT](https://chat.openai.com/)
- [OpenAI Blog](https://openai.com/blog/)
diff --git a/iChatGPT.xcodeproj/project.pbxproj b/iChatGPT.xcodeproj/project.pbxproj
index 1bd618e..1257095 100644
--- a/iChatGPT.xcodeproj/project.pbxproj
+++ b/iChatGPT.xcodeproj/project.pbxproj
@@ -494,11 +494,13 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 2023.3.6;
+ CURRENT_PROJECT_VERSION = 2023.3.16;
DEVELOPMENT_ASSET_PATHS = "\"iChatGPT/Preview Content\"";
DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R5CQXUM9ZW;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iChatGPT/Info.plist;
@@ -518,6 +520,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iChatGPT;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = common_iPhone18;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
@@ -534,11 +537,13 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 2023.3.6;
+ CURRENT_PROJECT_VERSION = 2023.3.16;
DEVELOPMENT_ASSET_PATHS = "\"iChatGPT/Preview Content\"";
DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = R5CQXUM9ZW;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iChatGPT/Info.plist;
@@ -558,6 +563,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iChatGPT;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = common_iPhone18;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
diff --git a/iChatGPT/Models/AIChatModel.swift b/iChatGPT/Models/AIChatModel.swift
index fb20bd2..8ae262b 100644
--- a/iChatGPT/Models/AIChatModel.swift
+++ b/iChatGPT/Models/AIChatModel.swift
@@ -26,8 +26,10 @@ class AIChatModel: ObservableObject {
loadChatbot()
}
-
func getChatResponse(prompt: String){
+ if isRefreshSession {
+ loadChatbot()
+ }
let index = contents.count
let userAvatarUrl = self.bot?.getUserAvatar() ?? ""
var chat = AIChat(datetime: Date().currentDateString(), issue: prompt, userAvatarUrl: userAvatarUrl)
diff --git a/iChatGPT/Models/ChatGPT.swift b/iChatGPT/Models/ChatGPT.swift
index ce6a9d0..033cd01 100644
--- a/iChatGPT/Models/ChatGPT.swift
+++ b/iChatGPT/Models/ChatGPT.swift
@@ -11,7 +11,7 @@ import Combine
import OpenAI
class Chatbot {
- var userAvatarUrl = ""
+ var userAvatarUrl = "https://raw.githubusercontent.com/37iOS/iChatGPT/main/icon.png"
var openAIKey = ""
var openAI:OpenAI
var answer = ""
diff --git a/iChatGPT/TokenSettingView.swift b/iChatGPT/TokenSettingView.swift
index 67ad0aa..5a30492 100644
--- a/iChatGPT/TokenSettingView.swift
+++ b/iChatGPT/TokenSettingView.swift
@@ -91,11 +91,15 @@ struct TokenSettingView: View {
Text("开发者:37手游iOS技术运营团队\nGitHub 开源:https://github.com/37iOS/iChatGPT")
+ .font(.footnote)
+ .foregroundColor(.secondary)
+ .multilineTextAlignment(.center)
+ .padding(.bottom, 10)
+ Text("Contributors:[@iHTCboy](https://github.com/iHTCboy) | [@AlphaGogoo (BWQ)](https://github.com/AlphaGogoo)")
.font(.footnote)
.foregroundColor(.secondary)
.multilineTextAlignment(.center)
.padding(.bottom, 25)
-
}
}
}
diff --git a/screenshot/03.jpeg b/screenshot/03.jpeg
index 8230ea3..a8a2c2f 100644
Binary files a/screenshot/03.jpeg and b/screenshot/03.jpeg differ