Skip to content

Commit

Permalink
updated more unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Apr 20, 2024
1 parent 1e84afc commit 03a937e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenAI-DotNet-Tests/TestFixture_03_Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public async Task Test_03_01_GetChatVision()
new ImageUrl("https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg", ImageDetail.Low)
})
};
var chatRequest = new ChatRequest(messages, model: "gpt-4-vision-preview");
var chatRequest = new ChatRequest(messages, model: Model.GPT4_Turbo);
var response = await OpenAIClient.ChatEndpoint.GetCompletionAsync(chatRequest);
Assert.IsNotNull(response);
Assert.IsNotNull(response.Choices);
Expand All @@ -404,7 +404,7 @@ public async Task Test_03_02_GetChatVisionStreaming()
new ImageUrl("https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg", ImageDetail.Low)
})
};
var chatRequest = new ChatRequest(messages, model: "gpt-4-vision-preview");
var chatRequest = new ChatRequest(messages, model: Model.GPT4_Turbo);
var response = await OpenAIClient.ChatEndpoint.StreamCompletionAsync(chatRequest, partialResponse =>
{
Assert.IsNotNull(partialResponse);
Expand Down

0 comments on commit 03a937e

Please sign in to comment.