You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using var client = new HttpClient();
var model = new Gpt35TurboModel(apiKey, client);
var service = new WeatherService();
model.AddGlobalFunctions(service.AsFunctions(), service.AsCalls());
var response = await model.GenerateAsync(new ChatRequest(
Messages: new []
{
"You are a helpful weather assistant.".AsSystemMessage(),
"What's the weather like today?".AsHumanMessage(),
"Sure! Could you please provide me with your location?".AsAiMessage(),
"Dubai, UAE".AsHumanMessage(),
}));
Console.WriteLine(response.Messages.AsHistory());
I can't find Methods AsFunctions, AsCalls, AsSystemMessage, AsHumanMessage etc. I am trying to use it in .Net 4.6.2
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
using var client = new HttpClient();
var model = new Gpt35TurboModel(apiKey, client);
var service = new WeatherService();
model.AddGlobalFunctions(service.AsFunctions(), service.AsCalls());
var response = await model.GenerateAsync(new ChatRequest(
Messages: new []
{
"You are a helpful weather assistant.".AsSystemMessage(),
"What's the weather like today?".AsHumanMessage(),
"Sure! Could you please provide me with your location?".AsAiMessage(),
"Dubai, UAE".AsHumanMessage(),
}));
Console.WriteLine(response.Messages.AsHistory());
I can't find Methods AsFunctions, AsCalls, AsSystemMessage, AsHumanMessage etc. I am trying to use it in .Net 4.6.2
Beta Was this translation helpful? Give feedback.
All reactions