Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快速删除"有模型价格", 但是不属于"可用模型"的模型价格 #343

Open
woodchen-ink opened this issue Sep 10, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@woodchen-ink
Copy link

标题有点绕~

实际情况是这样: 我的价格表都是直接拉的github上的这个价格.

然后呢, 很多模型我没有去配置渠道, 也就是说并没有办法使用.

但是我通过模型价格API, 也就是这个接口:

image

返回的是"系统所有模型价格", 而不是只有"可用模型"的价格.

所以就很奇怪, 比如我的文档里:

image

这些模型因为不好用, 国内还是先充钱后用的原因, 我都停掉了. 但是查价接口里还有.

有没有办法两个统一 一下?

例如:

  1. 模型价格编辑处可以"清理无效价格"
    image

  2. 直接规范/api/prices接口, 只返回"可用模型"的价格

@woodchen-ink woodchen-ink added the enhancement New feature or request label Sep 10, 2024
@MartialBE
Copy link
Owner

其实models那个接口返回的就是可用模型。 需要两个接口结合一下。 可以参考后台可用模型那个页面

@woodchen-ink
Copy link
Author

其实models那个接口返回的就是可用模型。 需要两个接口结合一下。 可以参考后台可用模型那个页面

👌

@woodchen-ink
Copy link
Author

额, model接口调用还需要key, 难道我建个0额度的key去调用接口? 😂

@woodchen-ink woodchen-ink reopened this Sep 13, 2024
@woodchen-ink
Copy link
Author

建了一个0.01额度的key, 调用成功了, 感觉好奇怪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants