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"));