From 62afaca0b7e6639b28e5d8a56a2c1fd4104fc9d5 Mon Sep 17 00:00:00 2001 From: jefim Date: Fri, 5 Jan 2024 11:04:27 +0200 Subject: [PATCH] Fix test --- .../Frends.OpenAI.CallChatGPT.Tests/IntegrationTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frends.OpenAI.CallChatGPT/Frends.OpenAI.CallChatGPT.Tests/IntegrationTests.cs b/Frends.OpenAI.CallChatGPT/Frends.OpenAI.CallChatGPT.Tests/IntegrationTests.cs index 36adccb..ef91077 100644 --- a/Frends.OpenAI.CallChatGPT/Frends.OpenAI.CallChatGPT.Tests/IntegrationTests.cs +++ b/Frends.OpenAI.CallChatGPT/Frends.OpenAI.CallChatGPT.Tests/IntegrationTests.cs @@ -19,6 +19,7 @@ public async Task TestCompletion() var input = new Input { Model = "gpt-3.5-turbo", + ApiKey = this.apiKey, Messages = new[] { new InputMessage @@ -29,7 +30,7 @@ public async Task TestCompletion() }, }; - var options = new Options { ApiKey = this.apiKey }; + var options = new Options(); var ret = await OpenAI.CallChatGPT(input, options, default); Assert.IsTrue(ret.ChatCompletion.Model.StartsWith("gpt-3.5-turbo"));