Skip to content

Commit ea0ca7c

Browse files
authored
Update Base Prompt
1 parent 097c20b commit ea0ca7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Shared/ChatGPTAPI.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class ChatGPTAPI {
2727
}()
2828

2929
private let jsonDecoder = JSONDecoder()
30-
private var basePrompt: String { "You are ChatGPT, a large language model trained by OpenAI. Respond conversationally. Do not answer as the user. Current date: \(dateFormatter.string(from: Date()))\n\n"
30+
private var basePrompt: String {
31+
"You are ChatGPT, a large language model trained by OpenAI. Respond conversationally. Do not answer as the user. Current date: \(dateFormatter.string(from: Date()))"
32+
+ "\n\n"
33+
+ "User: Hello\n"
34+
+ "ChatGPT: Hello! How can I help you today? <|im_end|>\n\n\n"
3135
}
3236

3337
private var headers: [String: String] {

0 commit comments

Comments
 (0)