传递给 getGenerativeModel() 的参数。
签名:
export interface RequestOptions
属性
属性 | 类型 | 说明 |
---|---|---|
baseUrl | 字符串 | 端点的基准网址。默认值为 https://firebaseml.googleapis.com |
超时 | 数字 | 请求超时(以毫秒为单位)。 |
RequestOptions.baseUrl
端点的基准网址。默认值为 https://firebaseml.googleapis.com
签名:
baseUrl?: string;
RequestOptions.timeout
请求超时(以毫秒为单位)。
签名:
timeout?: number;