anthropics / anthropics/claude-quickstarts

TypeError: 'TextBlock' object does not support item assignment

Offen
#204 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug computer use
Vorherrschende Sprache
TypeScript
Sterne
17.6k
Forks
3k
Ø Merge
5 Std. 13 Min.
Gemergte PRs (30 T.)
3

Beschreibung

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
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(
~~~~~~~~~~~^^^^^^^^^^^^^^^^^`

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.