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

Add endpoints for bizyair server address #224

Merged
merged 14 commits into from
Nov 20, 2024

Conversation

doombeaker
Copy link
Collaborator

@doombeaker doombeaker commented Nov 16, 2024

为了解决国内接入点 https://bizyair-api.siliconflow.cn/x/v1 有概率会拒绝国外 IP 的问题,新增了一个供海外访问的接入点 https://bizyair-api-st.siliconflow.cn/x/v1

本 PR 增加了切换接入点的功能:

  • 把参数 BIZYAIR_SERVER_ADDRESS 改为类 ServerAddress 对象,这样在运行时修改,可以影响到全局
  • 增加 node ToggleServerEndpoint, 包括前端提示
  • 增加切换切入点的 example
  • 确认海外接入点(https://bizyair-api-st.siliconflow.cn/x/v1 )的正常使用

image

@doombeaker doombeaker marked this pull request as ready for review November 19, 2024 08:36
@doombeaker doombeaker merged commit b5997c4 into master Nov 20, 2024
4 checks passed
@doombeaker doombeaker deleted the add_endpoint_for_bizyair_server_address branch November 20, 2024 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant