Skip to content

[Bug]: 当前的cli@0.2.0的add-resource命令似乎和最新版的server api不匹配 #1148

@BOSSzz

Description

@BOSSzz

Bug Description

当前cli安装脚本安装的最新版本0.2.0使用add-resource命令对0.3.2版本的server使用会报错
Error: API error: HTTP error 422 Unprocessable Entity

查看了一下原因似乎是POST /api/v1/resources 接口接受的参数从uri变成了path
希望可以尽快出最新的cli

Steps to Reproduce

pip install openviking --upgrade --force-reinstall 安装最新server
curl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/crates/ov_cli/install.sh | bash 安装cli

ov add-resource https://github.com/volcengine/OpenViking 就会报错

Expected Behavior

正常添加resource

Actual Behavior

Error: API error: HTTP error 422 Unprocessable Entity

Minimal Reproducible Example

Error Logs

OpenViking Version

server@0.3.2 cli@0.2.0

Python Version

3.12.12

Operating System

Linux

Model Backend

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions