(doc: Api.Document)
| 659 | |
| 660 | const getDocumentThumb = (doc: Api.Document): Api.TypePhotoSize | undefined => { |
| 661 | const thumbs = doc.thumbs || []; |
| 662 | if (thumbs.length === 0) return undefined; |
| 663 | return thumbs[thumbs.length - 1]; |
| 664 | }; |
| 665 | |
| 666 | const resolveImageInputs = async ( |
| 667 | parts: AIContentPart[], |
| 668 | httpClient: HttpClient, |
no outgoing calls
no test coverage detected