File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- use std:: vec;
2
-
3
- use dkn_workflows:: { DriaWorkflowsConfig , OllamaConfig } ;
4
- use ollama_workflows:: ollama_rs:: {
5
- generation:: { completion:: request:: GenerationRequest , options:: GenerationOptions } ,
6
- Ollama ,
7
- } ;
8
- use ollama_workflows:: Model ;
9
-
10
1
#[ cfg( feature = "profiling" ) ]
11
- use sysinfo:: { CpuRefreshKind , RefreshKind , System , MINIMUM_CPU_UPDATE_INTERVAL } ;
2
+ mod profile {
3
+ pub use dkn_workflows:: { DriaWorkflowsConfig , OllamaConfig } ;
4
+ pub use ollama_workflows:: ollama_rs:: {
5
+ generation:: { completion:: request:: GenerationRequest , options:: GenerationOptions } ,
6
+ Ollama ,
7
+ } ;
8
+ pub use ollama_workflows:: Model ;
9
+ pub use sysinfo:: { CpuRefreshKind , RefreshKind , System , MINIMUM_CPU_UPDATE_INTERVAL } ;
10
+ }
12
11
13
12
#[ tokio:: main]
14
13
async fn main ( ) {
15
14
#[ cfg( feature = "profiling" ) ]
16
15
{
16
+ use crate :: profile:: * ;
17
17
// initialize logger
18
18
env_logger:: init ( ) ;
19
19
You can’t perform that action at this time.
0 commit comments