Async call to Google AI embedding API. Note: Google AI Python client doesn't have async support yet, so this falls back to synchronous call.
(self, api_kwargs: Dict = {}, model_type: ModelType = ModelType.UNDEFINED)
| 253 | raise |
| 254 | |
| 255 | async def acall(self, api_kwargs: Dict = {}, model_type: ModelType = ModelType.UNDEFINED): |
| 256 | """Async call to Google AI embedding API. |
| 257 | |
| 258 | Note: Google AI Python client doesn't have async support yet, |
| 259 | so this falls back to synchronous call. |
| 260 | """ |
| 261 | # Google AI client doesn't have async support yet |
| 262 | return self.call(api_kwargs, model_type) |