SimpleChat

1
2
3
4
5
6
7
8
using var api = GetAuthenticatedClient();

CreateChatCompletionResponse response = await api.Chat.CreateChatCompletionAsync(
    messages: ["Say 'this is a test.'"],
    model: CreateChatCompletionRequestModel.Gpt4o);

Console.WriteLine("[ASSISTANT]:");
Console.WriteLine($"{response.Choices[0].Message.Content}");