MCPcopy
hub / github.com/AsyncFuncAI/deepwiki-open / is_ollama_embedder

Function is_ollama_embedder

api/config.py:186–204  ·  view source on GitHub ↗

Check if the current embedder configuration uses OllamaClient. Returns: bool: True if using OllamaClient, False otherwise

()

Source from the content-addressed store, hash-verified

184 return configs.get("embedder", {})
185
186def is_ollama_embedder():
187 """
188 Check if the current embedder configuration uses OllamaClient.
189
190 Returns:
191 bool: True if using OllamaClient, False otherwise
192 """
193 embedder_config = get_embedder_config()
194 if not embedder_config:
195 return False
196
197 # Check if model_client is OllamaClient
198 model_client = embedder_config.get("model_client")
199 if model_client:
200 return model_client.__name__ == "OllamaClient"
201
202 # Fallback: check client_class string
203 client_class = embedder_config.get("client_class", "")
204 return client_class == "OllamaClient"
205
206def is_google_embedder():
207 """

Callers 2

get_embedder_typeFunction · 0.85

Calls 1

get_embedder_configFunction · 0.85

Tested by 1