native_tool_call_adapter
native_tool_call_adapter copied to clipboard
Architect Mode in RooCode fails
RooCode v3.28.14 using GPT-OSS-20b
While in Architect Mode, a tool call query such as "Tell me about the project." fails with the following: Similarly other modes fail like this, such as Debug
API Request Failed 1 validation error for Message content.0 Input should be a valid dictionary or instance of Content [type=model_type, input_value=[{'text': "[read_file for...ails>', 'type': 'text'}], input_type=list] For further information visit https://errors.pydantic.dev/2.12/v/model_type None
I was able to fix this by adding the following at line #62 in app.py
# Normalize all message content to string format for target API compatibility
for message in request["messages"]:
if "content" in message and isinstance(message["content"], list):
# Convert list format to string
message["content"] = "".join(
item.get("text", "") for item in message["content"]
if isinstance(item, dict) and "text" in item
)
I had the same issue and this fix worked for me. Thanks!