lmstudio-ai / lmstudio-ai/lmstudio-python
Feature: add a per-client file handle caching helper
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 875
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
Early iterations of the `history.Chat` API included support for allowing local files to be added directly to chat history instances by implicitly generating and caching file handles. This was ultimately removed as being overly confusing (https://github.com/lmstudio-ai/lmstudio-python/commit/5aeb36775af702196e4ba6b088090c2f73cc673d), but it would be good to adapt that old concept into a more explicit file handle caching helper at the `[Async]Client` instance level.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the removed history.Chat behavior in commit 5aeb36775af702196e4ba6b088090c2f73cc673d, then inspect the Client and AsyncClient APIs. Define how an explicit per-client file handle caching helper should behave and confirm that both client variants expose the intended workflow without restoring implicit history.Chat handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100