Fixing warnings and moving LLM providers into a module
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use crate::commands::{fs, search, shell};
|
use crate::commands::{fs, search, shell};
|
||||||
use crate::llm::anthropic::AnthropicProvider;
|
|
||||||
use crate::llm::ollama::OllamaProvider;
|
|
||||||
use crate::llm::prompts::SYSTEM_PROMPT;
|
use crate::llm::prompts::SYSTEM_PROMPT;
|
||||||
|
use crate::llm::providers::anthropic::AnthropicProvider;
|
||||||
|
use crate::llm::providers::ollama::OllamaProvider;
|
||||||
use crate::llm::types::{Message, Role, ToolCall, ToolDefinition, ToolFunctionDefinition};
|
use crate::llm::types::{Message, Role, ToolCall, ToolDefinition, ToolFunctionDefinition};
|
||||||
use crate::state::SessionState;
|
use crate::state::SessionState;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
pub mod anthropic;
|
|
||||||
pub mod ollama;
|
|
||||||
pub mod prompts;
|
pub mod prompts;
|
||||||
|
pub mod providers;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|||||||
2
src-tauri/src/llm/providers/mod.rs
Normal file
2
src-tauri/src/llm/providers/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
pub mod anthropic;
|
||||||
|
pub mod ollama;
|
||||||
Reference in New Issue
Block a user