MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / __init__

Method __init__

api/google_embedder_client.py:53–67  ·  view source on GitHub ↗

Initialize Google AI Embeddings client. Args: api_key: Google AI API key. If not provided, uses environment variable. env_api_key_name: Name of environment variable containing API key.

(
        self,
        api_key: Optional[str] = None,
        env_api_key_name: str = "GOOGLE_API_KEY",
    )

Source from the content-addressed store, hash-verified

51 """
52
53 def __init__(
54 self,
55 api_key: Optional[str] = None,
56 env_api_key_name: str = "GOOGLE_API_KEY",
57 ):
58 """Initialize Google AI Embeddings client.
59
60 Args:
61 api_key: Google AI API key. If not provided, uses environment variable.
62 env_api_key_name: Name of environment variable containing API key.
63 """
64 super().__init__()
65 self._api_key = api_key
66 self._env_api_key_name = env_api_key_name
67 self._initialize_client()
68
69 def _initialize_client(self):
70 """Initialize the Google AI client with API key."""

Callers

nothing calls this directly

Calls 1

_initialize_clientMethod · 0.95

Tested by

no test coverage detected