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

[Bug] Mac客户端0.4.17版本获取OpenAI支持模型列表时,URL带端口号无法获取成功 #1571

Open
3 of 4 tasks
mmsoon opened this issue May 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mmsoon
Copy link

mmsoon commented May 24, 2024

Please search before asking

  • I searched in the issues and found nothing similar.

Please read README

  • I have read the troubleshooting section in the README in detail.

Please check your network and OpenAI API quota

  • I am sure it is not a network issue or an OpenAI API quota issue.

OpenAI Translator version

Mac客户端0.4.17

Model name

所有

系统/浏览器版本 System/Browser version

macOS 11.6.1

复现步骤 Reproduce step

  1. 打开设置界面,服务商选中“OpenAI“。
  2. 输入Key
  3. 输入API URL,如http://192.168.1.10:81 (地址确认是可以访问的)
    4.点“保存”,再点模型右侧的刷新按钮,系统不提示错误,也无法获取到正确的列表。

你看到了什么错误?What errors do you see?

从Charles抓包和服务器上的回显看,如果带的端口号是80,或者不带端口号,有调用/v1/models的请求。如果带了其它的端口号,则抓取不到网络请求,模型列表为空。

你期望看到什么?What did you expect to see?

能显示和获取正确的列表。

还有其他的内容吗?Anything else?

No response

你是否愿意提交一份 PR 来修改这个错误?Are you willing to submit a PR?

  • 我愿意提供 PR! I'm willing to submit a PR!
@mmsoon mmsoon added the bug Something isn't working label May 24, 2024
@ghost
Copy link

ghost commented May 28, 2024

window也是这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant