Skip to content

computer_use运行时候直接文件打开报错,有个比较低级的bug #257

@shenjiwuya

Description

@shenjiwuya

运行时候会先截屏,给VLM传过去是带file://的,但本地base64解析时候没去掉就报错了,要加下下面的代码

修改方案
def image_to_base64(image_path):
# 去掉file://前缀
if image_path.startswith("file://"):
image_path = image_path[7:] # 去掉"file://"前缀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions