llm chat -m mistral-7b-instruct-v0 led to OSError: [Errno 9] Bad file descriptor
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.5k
- Forks
- 998
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 10
Description
llm chat -m mistral-7b-instruct-v0
Chatting with mistral-7b-instruct-v0
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
> what should I do tomorrow?
That's a question that only you can answer. What are your goals, interests, and responsibilities for tomorrow?Exception ignored in: <_io.TextIOWrapper name=5 mode='w' encoding='UTF-8'>
Traceback (most recent call last):
File "/opt/homebrew/Cellar/llm/0.17.1/libexec/lib/python3.13/site-packages/llm_gpt4all.py", line 294, in __exit__
sys.stderr = self.original_stderr
OSError: [Errno 9] Bad file descriptor
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
Reproduce the error with llm chat -m mistral-7b-instruct-v0 and inspect llm_gpt4all.py around line 294, where the traceback reports the failure. Trace the stderr handling during command exit and verify that the command no longer emits the Bad file descriptor exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100