Context Window Fetching & Token Counting Fix for Kilo Code and LM Studio
Tools like Roo-Code and Kilo Code have become increasingly interesting for developers wanting to leverage locally hosted AI models. Such extensions generally depend on an OpenAI-compatible API that provides essential model metadata, such as the contextWindow. LM Studio, a popular choice for hosting local models, provides a compatible API, but currently omits the contextWindow property, leading to compatibility issues with...