(
key: IntegrationTaskKey,
id: string,
options: OpenAIRequestOptions = {}
)
| 191 | } |
| 192 | |
| 193 | retrieve( |
| 194 | key: IntegrationTaskKey, |
| 195 | id: string, |
| 196 | options: OpenAIRequestOptions = {} |
| 197 | ): Promise<OpenAI.Files.FileObject> { |
| 198 | return this.runTask( |
| 199 | key, |
| 200 | async (client, task) => { |
| 201 | const response = await client.files.retrieve(id, options); |
| 202 | return response; |
| 203 | }, |
| 204 | { |
| 205 | name: "Retrieve file", |
| 206 | properties: [ |
| 207 | { |
| 208 | label: "fileId", |
| 209 | text: id, |
| 210 | }, |
| 211 | ], |
| 212 | }, |
| 213 | handleOpenAIError |
| 214 | ); |
| 215 | } |
| 216 | |
| 217 | list( |
| 218 | key: IntegrationTaskKey, |
no test coverage detected