Skip to content

Commit 0894603

Browse files
committed
better re-export [skip ci]
1 parent 3d19612 commit 0894603

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

compute/src/handlers/workflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use async_trait::async_trait;
22
use dkn_p2p::libp2p::gossipsub::MessageAcceptance;
3-
use dkn_workflows::ollama_workflows::{Entry, Executor, ModelProvider, ProgramMemory, Workflow};
3+
use dkn_workflows::{Entry, Executor, ModelProvider, ProgramMemory, Workflow};
44
use eyre::{eyre, Context, Result};
55
use libsecp256k1::PublicKey;
66
use serde::Deserialize;

workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Add the package via `git` within your Cargo dependencies:
1414
dkn-workflows = { git = "https://github.com/firstbatchxyz/dkn-compute-node" }
1515
```
1616

17-
Note that the underlying Ollama Workflows crate is re-exported by this crate.
17+
Note that the underlying [Ollama Workflows](https://github.com/andthattoo/ollama-workflows) crate is re-exported by this crate.
1818

1919
## Usage
2020

workflows/src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use crate::{split_csv_line, OllamaConfig, OpenAIConfig};
1+
use crate::{split_csv_line, Model, ModelProvider, OllamaConfig, OpenAIConfig};
22
use eyre::{eyre, Result};
3-
use ollama_workflows::{Model, ModelProvider};
43
use rand::seq::IteratorRandom; // provides Vec<_>.choose
54

65
#[derive(Debug, Clone)]

workflows/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ use providers::{OllamaConfig, OpenAIConfig};
77
mod config;
88
pub use config::DriaWorkflowsConfig;
99

10-
pub use ollama_workflows;
11-
pub use ollama_workflows::{Model, ModelProvider};
10+
// re-export Ollama Workflows
11+
pub use ollama_workflows::*;

0 commit comments

Comments
 (0)