RequestOptions interface

傳遞至 getGenerativeModel() 的參數。

簽名:

export interface RequestOptions 

屬性

屬性 類型 說明
baseUrl 字串 端點的基準網址。預設值為 https://firebaseml.googleapis.com
逾時 數字 要求逾時 (以毫秒為單位)。

RequestOptions.baseUrl

端點的基準網址。預設值為 https://firebaseml.googleapis.com

簽名:

baseUrl?: string;

RequestOptions.timeout

要求逾時 (以毫秒為單位)。

簽名:

timeout?: number;