Skip to content

Can not run properly with Mistral AI #71

@HaoKang-Timmy

Description

@HaoKang-Timmy

I installed every thing needed and can start the game. When I run demo.py, I found there is an error occured. I wonder how could I fix it?

Traceback (most recent call last): File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/Users/catbeta/Documents/game/llm-colosseum/eval/game.py", line 429, in run self.game.player_2.robot.plan() File "/Users/catbeta/Documents/game/llm-colosseum/agent/robot.py", line 145, in plan next_steps_from_llm = self.get_moves_from_llm() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/catbeta/Documents/game/llm-colosseum/agent/robot.py", line 182, in get_moves_from_llm for r in llm_stream: ^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/llama_index/core/llms/callbacks.py", line 186, in wrapped_gen for x in f_return_val: ^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/llama_index/llms/mistralai/base.py", line 279, in gen for chunk in response: ^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/mistralai/utils/eventstreaming.py", line 36, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/mistralai/utils/eventstreaming.py", line 135, in stream_events for chunk in response.iter_bytes(): ^^^^^^^^^^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/httpx/_models.py", line 897, in iter_bytes for raw_bytes in self.iter_raw(): ^^^^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/httpx/_models.py", line 951, in iter_raw for raw_stream_bytes in self.stream: ^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/httpx/_client.py", line 153, in __iter__ for chunk in self._stream: ^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/httpx/_transports/default.py", line 126, in __iter__ with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/contextlib.py", line 158, in __exit__ self.gen.throw(value) File "/Users/catbeta/miniforge3/envs/game/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadError: [Errno 9] Bad file descriptor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions