From b4422e3bb1ac471f81931f42b113cdb7c74f7020 Mon Sep 17 00:00:00 2001 From: Devashish Lal Date: Wed, 17 Jan 2024 14:33:17 -0800 Subject: [PATCH] print update Signed-off-by: Devashish Lal --- embeddings/src/lib.rs | 2 ++ spin.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/embeddings/src/lib.rs b/embeddings/src/lib.rs index 6da36f2..631ee4a 100644 --- a/embeddings/src/lib.rs +++ b/embeddings/src/lib.rs @@ -25,6 +25,8 @@ fn handle_embeddings(req: Request) -> Result { let request: OllamaEmbeddingRequest = serde_json::from_slice(req.body())?; + println!("PROMPT: {:?}", request.prompt.as_str()); + let result = generate_embeddings( EmbeddingModel::AllMiniLmL6V2, &[request.prompt] ); diff --git a/spin.toml b/spin.toml index 983e5c5..4c52f32 100644 --- a/spin.toml +++ b/spin.toml @@ -3,7 +3,7 @@ spin_manifest_version = 2 # General identification information [application] name = "spin-o-llama" -version = "1.0.3" +version = "1.0.4" description = "Ollama API" [[trigger.http]]