Skip to content

Commit

Permalink
[Example] ggml: add stream-stdout back
Browse files Browse the repository at this point in the history
Signed-off-by: hydai <[email protected]>
  • Loading branch information
hydai committed Jan 9, 2024
1 parent 791193d commit 3480581
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wasmedge-ggml-llama-interactive/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ fn main() {
Ok(val) => options["enable-debug-log"] = serde_json::from_str(val.as_str()).unwrap(),
_ => (),
};
match env::var("stream_stdout") {
Ok(val) => options["stream-stdout"] = serde_json::from_str(val.as_str()).unwrap(),
_ => (),
};
match env::var("n_predict") {
Ok(val) => options["n-preidct"] = serde_json::from_str(val.as_str()).unwrap(),
_ => (),
Expand Down
Binary file not shown.

0 comments on commit 3480581

Please sign in to comment.