Skip to content

Commit 3fd5efb

Browse files
committed
fix: deprecated version strings are changed
1 parent 1a9517f commit 3fd5efb

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

Samples~/ChatGPT/ChatGPT.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private async void SendReply()
5858
// Complete the instruction
5959
var completionResponse = await openai.CreateChatCompletion(new CreateChatCompletionRequest()
6060
{
61-
Model = "gpt-3.5-turbo-0613",
61+
Model = "gpt-3.5-turbo",
6262
Messages = messages
6363
});
6464

Samples~/Stream Response/StreamResponse.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using System;
21
using UnityEngine;
32
using System.Linq;
43
using UnityEngine.UI;
5-
using System.Collections.Generic;
64
using System.Threading;
5+
using System.Collections.Generic;
76

87
namespace OpenAI
98
{
@@ -35,7 +34,7 @@ private void SendMessage()
3534

3635
openai.CreateChatCompletionAsync(new CreateChatCompletionRequest()
3736
{
38-
Model = "gpt-3.5-turbo-0301",
37+
Model = "gpt-3.5-turbo",
3938
Messages = message,
4039
Stream = true
4140
}, HandleResponse, null, token);

Tests/ModelsApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public async Task List_Models()
1717
[Test]
1818
public async Task Retrieve_Models()
1919
{
20-
var id = "text-davinci-003";
20+
var id = "gpt-3.5-turbo";
2121
var models = await openai.RetrieveModel(id);
2222
Assert.AreEqual(id, models.Id);
2323
}

0 commit comments

Comments
 (0)