Skip to content

Commit ed66d81

Browse files
committed
chore: Better organize llm provider modules
1 parent 5633035 commit ed66d81

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
pub mod openai;
1+
mod providers;
22
pub mod summarizer;
33
pub mod transcriber;
4+
5+
pub use providers::openai;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod openai;
2+
pub mod whisper_cpp;

crates/stream_pulse/src/lib/llm/openai.rs renamed to crates/stream_pulse/src/lib/llm/providers/openai.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub enum OpenAIError {
3737
}
3838

3939
impl<F: AudioProcessor> OpenAIClient<F> {
40-
const SYSTEM_PROMPT: &str = include_str!("./prompts/system_0.txt");
40+
const SYSTEM_PROMPT: &str = include_str!("../prompts/system_0.txt");
4141

4242
pub fn new(api_key: impl Into<String>, ffmpeg: F) -> Self {
4343
let retry_policy = ExponentialBackoff::builder().build_with_max_retries(3);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

crates/stream_pulse/src/lib/llm/whisper_cpp.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)