MCPcopy Create free account
hub / github.com/1jehuang/jcode / models_dir

Function models_dir

crates/jcode-base/src/embedding.rs:402–406  ·  view source on GitHub ↗

Get the models directory path.

()

Source from the content-addressed store, hash-verified

400
401/// Get the models directory path.
402pub fn models_dir() -> Result<PathBuf> {
403 let dir = jcode_dir()?.join("models").join(backend::MODEL_NAME);
404 std::fs::create_dir_all(&dir)?;
405 Ok(dir)
406}
407
408/// Check if the embedding model is available.
409pub fn is_model_available() -> bool {

Callers 3

loadMethod · 0.85
artifact_sizesFunction · 0.85
is_model_availableFunction · 0.85

Calls 1

jcode_dirFunction · 0.70

Tested by

no test coverage detected