Open
Description
I am able to use generateContent()
for text completions without problem. However, I can't seem to find the generateAnswer()
method for use with the Attributed Question-Answer
generative AI model (i.e. = models\aqa
). In fact, the Tasks
enum doesn't even have an value for that:
export enum Task {
GENERATE_CONTENT = "generateContent",
STREAM_GENERATE_CONTENT = "streamGenerateContent",
COUNT_TOKENS = "countTokens",
EMBED_CONTENT = "embedContent",
BATCH_EMBED_CONTENTS = "batchEmbedContents",
}
Can someone tell me where it is? Note, this is not a priority because I already added my own code to do this with the REST API, but at some point I would like to put everything through the generate-ai-js
package instead of just the generateContent
requests.