MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / resolve_embedding_mode

Method resolve_embedding_mode

examples/server/server.py:11900–11907  ·  view source on GitHub ↗
(
        cls,
        llama_model: Any,
        embedding: Optional[bool],
    )

Source from the content-addressed store, hash-verified

11898
11899 @classmethod
11900 def resolve_embedding_mode(
11901 cls,
11902 llama_model: Any,
11903 embedding: Optional[bool],
11904 ) -> bool:
11905 if embedding is not None:
11906 return embedding
11907 return cls.detect_embedding_model(llama_model)
11908
11909 def _meta_value(self, key: str) -> Optional[str]:
11910 return self._model_meta_value(self.llama_model, key)

Callers 1

__init__Method · 0.95

Calls 1

Tested by

no test coverage detected