@@ -102,14 +102,14 @@ export interface SummarizationReturn {
102102 summary_text : string ;
103103}
104104
105- export type QuestionAnswerArgs = Args & {
105+ export type QuestionAnsweringArgs = Args & {
106106 inputs : {
107107 context : string ;
108108 question : string ;
109109 } ;
110110} ;
111111
112- export interface QuestionAnswerReturn {
112+ export interface QuestionAnsweringReturn {
113113 /**
114114 * A string that’s the answer within the text.
115115 */
@@ -128,7 +128,7 @@ export interface QuestionAnswerReturn {
128128 start : number ;
129129}
130130
131- export type TableQuestionAnswerArgs = Args & {
131+ export type TableQuestionAnsweringArgs = Args & {
132132 inputs : {
133133 /**
134134 * The query in plain text that you want to ask the table
@@ -141,7 +141,7 @@ export type TableQuestionAnswerArgs = Args & {
141141 } ;
142142} ;
143143
144- export interface TableQuestionAnswerReturn {
144+ export interface TableQuestionAnsweringReturn {
145145 /**
146146 * The aggregator used to get the answer
147147 */
@@ -694,8 +694,8 @@ export class HfInference {
694694 /**
695695 * Want to have a nice know-it-all bot that can answer any question?. Recommended model: deepset/roberta-base-squad2
696696 */
697- public async questionAnswer ( args : QuestionAnswerArgs , options ?: Options ) : Promise < QuestionAnswerReturn > {
698- const res = await this . request < QuestionAnswerReturn > ( args , options ) ;
697+ public async questionAnswering ( args : QuestionAnsweringArgs , options ?: Options ) : Promise < QuestionAnsweringReturn > {
698+ const res = await this . request < QuestionAnsweringReturn > ( args , options ) ;
699699 const isValidOutput =
700700 typeof res . answer === "string" &&
701701 typeof res . end === "number" &&
@@ -712,11 +712,11 @@ export class HfInference {
712712 /**
713713 * Don’t know SQL? Don’t want to dive into a large spreadsheet? Ask questions in plain english! Recommended model: google/tapas-base-finetuned-wtq.
714714 */
715- public async tableQuestionAnswer (
716- args : TableQuestionAnswerArgs ,
715+ public async tableQuestionAnswering (
716+ args : TableQuestionAnsweringArgs ,
717717 options ?: Options
718- ) : Promise < TableQuestionAnswerReturn > {
719- const res = await this . request < TableQuestionAnswerReturn > ( args , options ) ;
718+ ) : Promise < TableQuestionAnsweringReturn > {
719+ const res = await this . request < TableQuestionAnsweringReturn > ( args , options ) ;
720720 const isValidOutput =
721721 typeof res . aggregator === "string" &&
722722 typeof res . answer === "string" &&
0 commit comments