QuantumNous / QuantumNous/new-api

无法添加讯飞的API

Open
#3,133 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
48.5k
Forks
11.6k
Avg merge
1d 17h
Merged PRs (30d)
58

Description

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

  1. 无法添加讯飞的API,选择“讯飞星火认知”的渠道类型添加,添加后报错【错误:模型 xopglm5: invalid auth】
  2. 尝试使用openAI类型添加,但因为讯飞http端点是https://maas-api.cn-huabei-1.xf-yun.com/v2,是v2结尾,调用失败
  3. 尝试配置这个API地址和key到cherry studio内,是可以正常调用的
  4. 大佬是否可以考虑openAI类型的API地址兼容/v2、/v3结尾的这种?

相关截图

Image Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure for the 讯飞星火认知 channel and the OpenAI-type channel using the reported endpoint https://maas-api.cn-huabei-1.xf-yun.com/v2. Trace how channel authentication and endpoint paths are handled; the issue is done when the 讯飞 API can be added and called successfully through the v2 endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.