Skip to content

Commit 8aee5b2

Browse files
committed
fix: gpt sample fix, class name fix
1 parent 57dfb55 commit 8aee5b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.
File renamed without changes.

Samples~/ChatGPT/ChatGPT.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ private void Start()
2121

2222
private async void SendReply()
2323
{
24+
userInput = inputField.text;
25+
Instruction += $"{userInput}\nA: ";
26+
2427
textArea.text = "...";
2528
inputField.text = "";
2629

2730
button.enabled = false;
2831
inputField.enabled = false;
2932

30-
userInput = inputField.text;
31-
Instruction += $"{userInput}\nA: ";
32-
3333
// Complete the instruction
3434
var completionResponse = await openai.CreateCompletion(new CreateCompletionRequest()
3535
{

0 commit comments

Comments
 (0)