RequestOptions interface

传递给 getGenerativeModel() 的参数。

签名

export interface RequestOptions 

属性

属性 类型 说明
baseUrl string 端点的基础网址。默认为 https://firebaseml.googleapis.com
超时 number 请求超时(以毫秒为单位)。

RequestOptions.baseUrl

端点的基础网址。默认为 https://firebaseml.googleapis.com

签名

baseUrl?: string;

RequestOptions.timeout

请求超时(以毫秒为单位)。

签名

timeout?: number;