You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
miniconda3/lib/python3.12/site-packages/anthropic/_base_client.py", line 1633, in _request
raise self._make_status_error_from_response(err.response) from None
anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages.36: all messages must have non-empty content except for the optional final assistant message'}}
The text was updated successfully, but these errors were encountered:
File "/Users//WebPro/freeact/./run.py", line 21, in main
await stream_conversation(agent, console=Console(), skill_sources=skill_sources)
File "/Users//WebPro/freeact/freeact/cli/utils.py", line 65, in stream_conversation
await stream_turn(agent_turn, console, show_token_usage)
File "/Users//WebPro/freeact/freeact/cli/utils.py", line 77, in stream_turn
async for s in turn.stream():
File "/Users//WebPro/freeact/freeact/model/claude/model.py", line 68, in stream
async for elem in self._iter:
File "/Users//WebPro/freeact/freeact/model/claude/retry.py", line 80, in retry
raise err
File "/Users//WebPro/freeact/freeact/model/claude/retry.py", line 62, in retry
async for elem in stream_func():
File "/Users//WebPro/freeact/freeact/model/claude/model.py", line 227, in _stream
async with self._client.messages.stream(
catch the error or program crashes
miniconda3/lib/python3.12/site-packages/anthropic/_base_client.py", line 1633, in _request
raise self._make_status_error_from_response(err.response) from None
anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages.36: all messages must have non-empty content except for the optional final assistant message'}}
The text was updated successfully, but these errors were encountered: