Using SmartEndpoint
Overview
How to Use
var openAI = new OpenAIEndpoint {
ApiKey = "...",
Model = "gpt-41"
};
var prompt = new SmartPrompt("You are a great C# coder");
C.WriteLine(
(await prompt.AskAsync(openAI, "Write a bubble sort method.")).Text);Dim openAI As New OpenAIEndpoint With {
.ApiKey = "...",
.Model = "gpt-41"
}
Dim prompt As New SmartPrompt("You are a great C# coder")
C.WriteLine(
(Await prompt.AskAsync(openAI, "Write a bubble sort method.")).Text)API Key
Model Options
Last updated
