(self)
| 109 | |
| 110 | @property |
| 111 | def _emb_invocation_params(self) -> Dict: |
| 112 | |
| 113 | openai_args = { |
| 114 | "model": self.embedding_model, |
| 115 | } |
| 116 | |
| 117 | if self.provider_cfg[PROVIDER_SETTING_IS_AZURE]: |
| 118 | engine = self._get_azure_deployment_id_for_model(self.embedding_model) |
| 119 | openai_args = { |
| 120 | "model": self.embedding_model, |
| 121 | "engine": engine, |
| 122 | } |
| 123 | |
| 124 | return openai_args |
| 125 | |
| 126 | def embed_with_retry(self, **kwargs: Any) -> Any: |
| 127 | """Use backoff to retry the embedding call.""" |
nothing calls this directly
no test coverage detected