Gremllm

https://news.ycombinator.com/rss Hits: 7
Summary

gremllm A slight upgrade to the Gremlins in your code, we hereby present GREMLLM. This utility class can be used for a variety of purposes. Uhm. Also please don't use this and if you do please tell me because WOW. Or maybe don't tell me. Or do. Installation pip install gremllm Usage from gremllm import Gremllm # Be sure to tell your gremllm what sort of thing it is counter = Gremllm ( 'counter' ) counter . value = 5 counter . increment () print ( counter . value ) # 6? print ( counter . to_roman_numerals ()) # VI? Every method call and attribute access goes through a gremllm to decide what code to execute. Key Features Dynamic Behavior : Objects implement methods and properties on-the-fly using LLM reasoning : Objects implement methods and properties on-the-fly using LLM reasoning Wet Mode : Method calls return living gremllm objects instead of plain values for infinite chaining : Method calls return living gremllm objects instead of plain values for infinite chaining Verbose Mode : See exactly what code the LLM generates with verbose=True : See exactly what code the LLM generates with Multi-Model Support : Use OpenAI, Claude, Gemini, or local models via the llm library : Use OpenAI, Claude, Gemini, or local models via the library Inheritance : Child objects automatically inherit wet and verbose settings : Child objects automatically inherit and settings Smart Error Handling: Graceful fallbacks when libraries aren't available or code fails Configuration Configure your preferred LLM using the llm library: # For OpenAI (default) llm keys set openai # For Claude pip install llm-claude-3 llm keys set claude # For local models pip install llm-ollama You can also specify which model to use when creating a gremllm: from gremllm import Gremllm # Use default model (gpt-4o-mini) counter = Gremllm ( 'counter' ) # Use specific OpenAI model counter = Gremllm ( 'counter' , model = 'gpt-4o' ) # Use Claude counter = Gremllm ( 'counter' , model = 'claude-3-5-sonnet-20241022' ) # Use...

First seen: 2025-07-04 19:13

Last seen: 2025-07-05 01:14