open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

AttributeError: 'NoneType' object has no attribute 'model_dump_json'

Open inlines10 opened this issue 5 months ago • 0 comments

Describe the bug

                                       ^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'model_dump_json' Image

Reproduce

from langchain_community.chat_models.tongyi import ChatTongyi

from browser_use import Agent from dotenv import load_dotenv import os load_dotenv()

import asyncio

api_key = os.getenv("DASHSCOPE_API_KEY")

llm = ChatTongyi(model="qwen-plus", dashscope_api_key=api_key)

async def main(): agent = Agent( task="获取https://github.com/OpenInterpreter/open-interpreter仓库的前五个问题", llm=llm, use_vision=False, ) result = await agent.run() print(result)

asyncio.run(main())

Expected behavior

怎么解决

Screenshots

No response

Open Interpreter version

WARNING: Package(s) not found: open-interpreter

Python version

Python 3.11.9

Operating System name and version

macos15

Additional context

No response

inlines10 avatar Jun 25 '25 03:06 inlines10