HowToUseOpenAiProviderSmaller

1
2
3
4
5
6
7
8
9
using LangChain.Providers.OpenAI.Predefined;
using static LangChain.Chains.Chain;

var model = new OpenAiLatestFastChatModel("your_openAI_key");
var chain =
    Set("Hello!")
    | LLM(model);

Console.WriteLine(await chain.RunAsync("text"));