MCPcopy Create free account
hub / github.com/DVampire/FinAgent / _emb_invocation_params

Method _emb_invocation_params

finagent/provider/provider.py:111–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Tested by

no test coverage detected