Skip to content

Commit

Permalink
feat: 完善 2.0 正式版本发布
Browse files Browse the repository at this point in the history
  • Loading branch information
iHTCboy committed Mar 16, 2023
1 parent 288876e commit 3928c41
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OpenAI ChatGPT app for iOS, iPadOS, macoS
**更新说明**

目前 v2.0:
- Cloudflare cookie support
- support OpenAI API key


**支持功能**
Expand Down Expand Up @@ -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)


### 五、效果示例

<img src="screenshot/02.jpeg" width="800" height:auto alt="screenshot/02.jpeg"/>
<img src="screenshot/05.jpeg" width="800" height:auto alt="screenshot/03.jpeg"/>
<img src="screenshot/05.jpeg" width="800" height:auto alt="screenshot/05.jpeg"/>
<img src="screenshot/06.jpeg" width="800" height:auto alt="screenshot/06.jpeg"/>
<img src="screenshot/07.jpeg" width="800" height:auto alt="screenshot/07.jpeg"/>


### 、特别鸣谢
### 、特别鸣谢

- [OpenAI ChatGPT](https://chat.openai.com/)
- [OpenAI Blog](https://openai.com/blog/)
Expand Down
10 changes: 8 additions & 2 deletions iChatGPT.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion iChatGPT/Models/AIChatModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion iChatGPT/Models/ChatGPT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
6 changes: 5 additions & 1 deletion iChatGPT/TokenSettingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
}
}
Expand Down
Binary file modified screenshot/03.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3928c41

Please sign in to comment.