mirror of
https://github.com/SilasMarvin/lsp-ai.git
synced 2025-12-18 23:14:28 +01:00
Clean up eprintln
This commit is contained in:
@@ -13,7 +13,7 @@ use anyhow::Context;
|
|||||||
use hf_hub::api::sync::ApiBuilder;
|
use hf_hub::api::sync::ApiBuilder;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use tracing::instrument;
|
use tracing::{error, instrument};
|
||||||
|
|
||||||
mod model;
|
mod model;
|
||||||
use model::Model;
|
use model::Model;
|
||||||
@@ -47,6 +47,7 @@ impl LLaMACPP {
|
|||||||
.name
|
.name
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.context("Please set `name` to use LLaMA.cpp")?;
|
.context("Please set `name` to use LLaMA.cpp")?;
|
||||||
|
error!("Loading in: {} - {}\nIf this model has not been loaded before it may take a few minutes to download it. Please hangtight.", configuration.model.repository, name);
|
||||||
let repo = api.model(configuration.model.repository.to_owned());
|
let repo = api.model(configuration.model.repository.to_owned());
|
||||||
let model_path = repo.get(name)?;
|
let model_path = repo.get(name)?;
|
||||||
let model = Model::new(model_path, &configuration)?;
|
let model = Model::new(model_path, &configuration)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user