Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'TextBlock' object does not support item assignment #204

Open
829711 opened this issue Dec 5, 2024 · 0 comments
Open

TypeError: 'TextBlock' object does not support item assignment #204

829711 opened this issue Dec 5, 2024 · 0 comments

Comments

@829711
Copy link

829711 commented Dec 5, 2024

Hi guys! I am running into this issue!
Can you help me please???

TypeError: 'TextBlock' object does not support item assignment

File "/home/computeruse/.pyenv/versions/3.11.6/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "/home/computeruse/.pyenv/versions/3.11.6/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.__dict__) File "/home/computeruse/computer_use_demo/streamlit.py", line 308, in <module> except Exception as e: ^^^^^^^^^^^^^^^^^^^ File "/home/computeruse/.pyenv/versions/3.11.6/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/home/computeruse/.pyenv/versions/3.11.6/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/computeruse/.pyenv/versions/3.11.6/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/computeruse/computer_use_demo/streamlit.py", line 181, in main # render past chats File "/home/computeruse/computer_use_demo/loop.py", line 115, in sampling_loop _inject_prompt_caching(messages) File "/home/computeruse/computer_use_demo/loop.py", line 257, in _inject_prompt_caching content[-1]["cache_control"] = BetaCacheControlEphemeralParam( ~~~~~~~~~~~^^^^^^^^^^^^^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant