Summarize
Generate a summary from an HTML document or plain text.
NodeJS
const html = await getHTML("http://www.cloudbrowser.ai");
if (!html) return;
const rp = await ai.summarize({
html: html,
responseFormat: {
properties: {
response: { type: "string" },
},
},
});
console.log(JSON.parse(rp.response).response);.NET
var html = await GetHTML("http://www.cloudbrowser.ai").ConfigureAwait(false);
if (html == null) return;
var rp = await ai.Summarize(new() {
Html = html
//ResponseFormat = "{\"response\":\"string\", \"required\":[\"response\"]}"
}).ConfigureAwait(false);
Console.WriteLine("{0}", rp.Response);/api/v1/ai/Summarize – Generate a Summary from HTML or Text
Last updated