Parannetut koodarin promptit + token-raja 512→1024
Koodarin prompti sisältää nyt: - Import-vihjeen: "from models import ..." aiemmista tiedostoista - Nimeämisvihjeen: Pydantic-schemat (UserCreate) vs SQLAlchemy (User) - "Include all necessary imports. Write complete, working code." Native-noden max_tokens nostettu 512→1024 jotta CRUD-endpointit mahtuvat yhteen vastaukseen. Testattu API:n kautta: 3B-malli tuottaa nyt oikeat importit, erilliset Pydantic-schemat ja kaikki 5 CRUD-endpointtia. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -346,7 +346,7 @@ async fn main() {
|
||||
|
||||
if let Some(ref engine) = llm {
|
||||
busy = true;
|
||||
let max_tokens = task.get("max_tokens").and_then(|v| v.as_u64()).unwrap_or(512) as usize;
|
||||
let max_tokens = task.get("max_tokens").and_then(|v| v.as_u64()).unwrap_or(1024) as usize;
|
||||
tracing::info!("Generoidaan (task_id: {}, max_tokens: {}): \"{}\"", task_id, max_tokens, &prompt[..prompt.len().min(100)]);
|
||||
|
||||
let model_name = engine.model_name();
|
||||
|
||||
Reference in New Issue
Block a user