(self, text: str)
| 353 | return f"{self.provider}:{self.model}:{self.dimensions}" |
| 354 | |
| 355 | def _normalize_text(self, text: str) -> str: |
| 356 | normalized = re.sub(r"\s+", " ", str(text or "")).strip() |
| 357 | return normalized[:8000] |
| 358 | |
| 359 | def _cache_key(self, text: str) -> str: |
| 360 | payload = f"{self.descriptor}:{text}" |
no outgoing calls
no test coverage detected