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

Method init_sync_client

api/litellm_client.py:49–57  ·  view source on GitHub ↗

Initialize synchronous LiteLLM OpenAI-compatible client.

(self)

Source from the content-addressed store, hash-verified

47 )
48
49 def init_sync_client(self):
50 """
51 Initialize synchronous LiteLLM OpenAI-compatible client.
52 """
53 api_key = self._api_key or os.getenv(self._env_api_key_name, "dummy")
54 return OpenAI(
55 api_key=api_key,
56 base_url=self.base_url,
57 )
58
59 def init_async_client(self):
60 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected