Simon Willison · 29 अप्रैल 2026 · उल्लेखनीय
Simon Willison: LLM 0.32a0 एक बड़ा बैकवर्ड-कंपैटिबल refactor है
संक्षेप में
Simon Willison अपने LLM CLI का एक alpha वर्ज़न जारी कर रहे हैं, जो inputs को message arrays में बदलता है और responses को typed parts (text, tool calls, reasoning, images) के रूप में stream करता है। पुराने prompt= कॉल अब भी काम करते हैं; यह रीबिल्ड आधुनिक multimodal/agent मॉडलों के लिए है।
Simon Willison · 29 अप्रैल 2026 · 3 जाँचे गए स्रोत

LLM के लिए सबसे ज़्यादा इस्तेमाल होने वाले Python CLI को संरचनात्मक रूप से नया रूप मिल रहा है — messages इनपुट में, typed streamed parts आउटपुट में — और पुराना API नहीं टूटता।
यह क्या है?
LLM, Simon Willison का open-source Python CLI और library है, जिससे language models से बात की जा सकती है। वर्ज़न 0.32a0, जो April 28 को जारी हुआ और April 29 को लिखा गया, एक backwards-compatible refactor है। इसमें दो architectural बदलाव आते हैं, जिनका संकेत Simon कई महीनों से दे रहे थे: prompts अब single text strings की जगह message arrays के रूप में भेजे जाते हैं, और responses plain text की जगह typed parts के रूप में stream होते हैं।
यह कैसे काम करता है?
नए builder helpers (`llm.user()`, `llm.assistant()`) OpenAI/Anthropic शैली में message arrays बनाते हैं। अब responses में `stream_events()` और `astream_events()` मिलते हैं, जो text, tool calls, reasoning traces और images के लिए typed chunks देते हैं, ताकि modern multimodal और agent-style मॉडलों के plugins structure को शुरू से अंत तक बनाए रख सकें। नए `to_dict()` / `from_dict()` methods responses को serialise करने योग्य बनाते हैं। पुराने `prompt=` कॉल पारदर्शी रूप से काम करते रहते हैं। CLI में `-o thinking_display` जुड़ा है, जिससे reasoning tokens को अलग से दिखाया जा सकता है।
यह क्यों मायने रखता है?
LLM हज़ारों indie scripts, plugins और frontier मॉडलों पर होने वाली एक-बार की automations के लिए व्यावहारिक रूप से de-facto plumbing है। plain-text-in, plain-text-out ढांचा tool calls, reasoning या multimodal output को साफ़ तरीके से नहीं दर्शा पाता था, इसलिए हर plugin को उसे नकली तरीके से बनाना पड़ता था। 0.32 लाइन plugin authors को एक असली type system देती है, और मौजूदा scripts को migrate करने पर मजबूर नहीं करती।
यह किसके लिए है?
LLM को scripts और plugins में इस्तेमाल करने वाले Python developers, और agentic या reasoning मॉडलों को target करने वाले plugin authors
आज़माएँ
pip install llm==0.32a0