One-liner koodi: system prompt vaatii rivinvaihdot + staattinen tarkistus

Ollaman system prompt: 'Use proper newlines and indentation'.
Staattinen analyysi: havaitsee jos .py-tiedosto on yhdellä rivillä.
Native node vaatii rebuildin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 12:07:51 +03:00
parent 9ac90aa540
commit a12bd7ce7f
2 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ impl LlmEngine {
}
pub async fn generate(&self, prompt: &str, max_tokens: usize) -> Result<GenerateResult, String> {
let system = "You are a coding assistant. Respond with ONLY code. No explanations, no markdown, no comments unless asked.";
let system = "You are a coding assistant. Respond with ONLY code. Use proper newlines and indentation. No explanations, no markdown fences, no comments unless asked.";
let model = self.model.borrow().clone();
let start = Instant::now();