Check if empty
(&self)
| 99 | |
| 100 | /// Check if empty |
| 101 | pub fn is_empty(&self) -> bool { |
| 102 | match self { |
| 103 | Self::Single(text) => text.is_empty(), |
| 104 | Self::Multiple(texts) => texts.is_empty(), |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /// Response from embedding generation |
no outgoing calls