Skip to content

调用modelscope的embedding模型时缺少参数 #488

@wefcdse

Description

@wefcdse

这个问题是否已有issue

  • 我确认没有已有issue,且已阅读常见问题

运行环境

  • OS: Windows11 22H2
  • Zotero version: 7.0.30
  • Plugin version: 0.2.3

当前配置信息

api https://api.siliconflow.cn
secretKey sk-...xorh
model deepseek-ai/DeepSeek-V3.2-Exp
temperature 1

问题详情

使用魔搭的长上下文的向量模型时,会遇到缺少参数的报错。
报错原因是很明显的缺了encoding_format参数,已经测试过使用转接服务器强行加上这个参数就能解决

POST https://api-inference.modelscope.cn/v1/embeddings
Embeddings Error: HTTP POST https://api-inference.modelscope.cn/v1/embeddings failed with status code 400

{"errors":{"message":"encoding_format must be 'float' or 'base64', got ''"},"request_id":"1...bc"}

补充说明

稳定复现,使用https://api-inference.modelscope.cn/v1/embeddings 与 Qwen/Qwen3-Embedding-8B可以复现

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions