Skip to content

[Bug]: 调用 embeddings 接口时,能加个默认的 "encoding_format": "float" 参数吗? #486

@mailbyms

Description

@mailbyms

相关组件

前端界面

Bug 描述

添加 modelscope 里的 embeddings 接口到 weknora ,点击测试都通过不了,
失败原因是请求里没有 encoding_format 这个参数

这个参数在别的平台不传送时默认都是 float,但 modelscope 必须要指明

期望行为

在 embeddings 接口时,加上默认的 "encoding_format": "float" 参数
兼容 modelscope 里的 embbeddings

相关日志

操作系统

ubuntu 24

确认事项

  • 我已经搜索了现有的 issues,确认这是一个新问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions