refactor: depend on renamed chain-module-sdk
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
6b16dc8ae5
commit
4efaac3e4e
3 changed files with 14 additions and 14 deletions
24
Cargo.lock
generated
24
Cargo.lock
generated
|
|
@ -39,17 +39,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "equivalent"
|
name = "chain-module-sdk"
|
||||||
version = "1.0.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "fai-module-sdk"
|
|
||||||
version = "0.1.2"
|
version = "0.1.2"
|
||||||
source = "git+https://git.flemming.ai/fai/module-sdk-rust.git?branch=main#a5da67d0a378a351faa6752f323409e1cb28f1b2"
|
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fai-module-sdk-macros",
|
"chain-module-sdk-macros",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
|
@ -57,15 +51,21 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fai-module-sdk-macros"
|
name = "chain-module-sdk-macros"
|
||||||
version = "0.1.2"
|
version = "0.1.2"
|
||||||
source = "git+https://git.flemming.ai/fai/module-sdk-rust.git?branch=main#a5da67d0a378a351faa6752f323409e1cb28f1b2"
|
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
"syn",
|
"syn",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "equivalent"
|
||||||
|
version = "1.0.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "form_urlencoded"
|
name = "form_urlencoded"
|
||||||
version = "1.2.2"
|
version = "1.2.2"
|
||||||
|
|
@ -267,7 +267,7 @@ dependencies = [
|
||||||
name = "text_summarize"
|
name = "text_summarize"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fai-module-sdk",
|
"chain-module-sdk",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ description = "F∆I module providing text.summarize"
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
fai-module-sdk = { git = "https://git.flemming.ai/fai/module-sdk-rust.git", branch = "main" }
|
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
mod llm;
|
mod llm;
|
||||||
|
|
||||||
use fai_module_sdk::prelude::*;
|
use chain_module_sdk::prelude::*;
|
||||||
|
|
||||||
const SYSTEM_PROMPT: &str = "You are a careful summarisation assistant. \
|
const SYSTEM_PROMPT: &str = "You are a careful summarisation assistant. \
|
||||||
Produce a faithful, neutral summary of the user's text in the user's language. \
|
Produce a faithful, neutral summary of the user's text in the user's language. \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue