chore(build): pin chain-module-sdk v0.3.0 and adopt #[chain_module]
SDK 0.3.0 drops the fai-legacy #[fai_module] alias; pin the tag and flip the attribute, rebuilt module.wasm accordingly. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
18a84ef4cb
commit
b5389fce45
4 changed files with 6 additions and 6 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
|
@ -40,8 +40,8 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|||
|
||||
[[package]]
|
||||
name = "chain-module-sdk"
|
||||
version = "0.1.2"
|
||||
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
|
||||
version = "0.3.0"
|
||||
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?tag=v0.3.0#a4415ada7e76aac5e3aabf3e4c4311ffc348d8d0"
|
||||
dependencies = [
|
||||
"chain-module-sdk-macros",
|
||||
"serde",
|
||||
|
|
@ -52,8 +52,8 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "chain-module-sdk-macros"
|
||||
version = "0.1.2"
|
||||
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
|
||||
version = "0.3.0"
|
||||
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?tag=v0.3.0#a4415ada7e76aac5e3aabf3e4c4311ffc348d8d0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ description = "F∆I module providing llm.chat"
|
|||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" }
|
||||
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", tag = "v0.3.0" }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
thiserror = "2"
|
||||
|
|
|
|||
BIN
module.wasm
BIN
module.wasm
Binary file not shown.
|
|
@ -12,7 +12,7 @@ mod llm;
|
|||
|
||||
use chain_module_sdk::prelude::*;
|
||||
|
||||
#[fai_module]
|
||||
#[chain_module]
|
||||
pub fn invoke(_ctx: Context, inputs: Inputs) -> Result<Outputs, ModuleError> {
|
||||
let prompt = inputs.require_text("prompt")?.to_string();
|
||||
let endpoint = inputs.require_text("endpoint")?.to_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue