diff --git a/network-poc/native-node/src/inference.rs b/network-poc/native-node/src/inference.rs index 64420d2..0ce6810 100644 --- a/network-poc/native-node/src/inference.rs +++ b/network-poc/native-node/src/inference.rs @@ -79,7 +79,8 @@ impl LlmEngine { } pub async fn generate(&self, prompt: &str, max_tokens: usize) -> Result { - let system = "You are a coding assistant. Respond with ONLY code. No explanations, no markdown fences, no 'Please note' or 'Here is' text. Only working code with proper imports."; + // System prompt tulee agentin konfiguraatiosta (frontend lähettää sen osana promptia). + // Tässä ei yliajeta sitä — Ollama saa vain prompt-kentän. let model = self.model.borrow().clone(); let start = Instant::now(); @@ -87,7 +88,6 @@ impl LlmEngine { .json(&serde_json::json!({ "model": model, "prompt": prompt, - "system": system, "stream": false, "options": { "num_predict": max_tokens,