Skip to content

Commit

Permalink
Merge pull request #128 from srcnalt/fix/minor-fixes
Browse files Browse the repository at this point in the history
GPT Version Change
  • Loading branch information
srcnalt authored Jul 18, 2024
2 parents ca916e9 + d866f80 commit 9550347
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Samples~/ChatGPT/ChatGPT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private async void SendReply()
// Complete the instruction
var completionResponse = await openai.CreateChatCompletion(new CreateChatCompletionRequest()
{
Model = "gpt-3.5-turbo",
Model = "gpt-4o-mini",
Messages = messages
});

Expand Down
2 changes: 1 addition & 1 deletion Samples~/Stream Response/StreamResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void SendMessage()

openai.CreateChatCompletionAsync(new CreateChatCompletionRequest()
{
Model = "gpt-3.5-turbo",
Model = "gpt-4o-mini",
Messages = message,
Stream = true
}, HandleResponse, null, token);
Expand Down
4 changes: 2 additions & 2 deletions Tests/ChatApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task Create_Chat_Completion()
{
var req = new CreateChatCompletionRequest
{
Model = "gpt-3.5-turbo",
Model = "gpt-4o-mini",
Messages = new List<ChatMessage>()
{
new ChatMessage() { Role = "user", Content = "Hello!" }
Expand All @@ -35,7 +35,7 @@ public async Task Create_Chat_Completion_Stream()

var req = new CreateChatCompletionRequest
{
Model = "gpt-3.5-turbo",
Model = "gpt-4o-mini",
Messages = new List<ChatMessage>()
{
new ChatMessage() { Role = "user", Content = "Hello!" }
Expand Down
2 changes: 1 addition & 1 deletion Tests/ModelsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public async Task List_Models()
[Test]
public async Task Retrieve_Models()
{
var id = "gpt-3.5-turbo";
var id = "gpt-4o-mini";
var models = await openai.RetrieveModel(id);
Assert.AreEqual(id, models.Id);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.srcnalt.openai-unity",
"version": "0.2.1",
"version": "0.2.2",
"displayName": "OpenAI Unity",
"description": "An unofficial OpenAI Unity package that aims to help you use OpenAI API directly in Unity game engine.",
"unity": "2020.3",
Expand Down

0 comments on commit 9550347

Please sign in to comment.