mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-10 23:48:17 +00:00
chore: clippy
This commit is contained in:
parent
e7cd90b6ab
commit
bd06e1d559
@ -163,13 +163,11 @@ impl LocalAIResourceController {
|
|||||||
pub async fn calculate_pending_resources(&self) -> FlowyResult<Vec<PendingResource>> {
|
pub async fn calculate_pending_resources(&self) -> FlowyResult<Vec<PendingResource>> {
|
||||||
let mut resources = vec![];
|
let mut resources = vec![];
|
||||||
let app_path = ollama_plugin_path();
|
let app_path = ollama_plugin_path();
|
||||||
if !app_path.exists() {
|
if !app_path.exists() && !ollama_plugin_command_available() {
|
||||||
if !ollama_plugin_command_available() {
|
|
||||||
trace!("[LLM Resource] offline app not found: {:?}", app_path);
|
trace!("[LLM Resource] offline app not found: {:?}", app_path);
|
||||||
resources.push(PendingResource::PluginExecutableNotReady);
|
resources.push(PendingResource::PluginExecutableNotReady);
|
||||||
return Ok(resources);
|
return Ok(resources);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
let setting = self.get_llm_setting();
|
let setting = self.get_llm_setting();
|
||||||
let client = Client::builder().timeout(Duration::from_secs(5)).build()?;
|
let client = Client::builder().timeout(Duration::from_secs(5)).build()?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user