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

请问:bing的key不支持免费的吗? #57

Open
lbersl opened this issue Sep 28, 2024 · 6 comments
Open

请问:bing的key不支持免费的吗? #57

lbersl opened this issue Sep 28, 2024 · 6 comments

Comments

@lbersl
Copy link

lbersl commented Sep 28, 2024

我申请的是每月1000次,每次3个并发结果的key,搜索的时候提示v7.0不支持

原文如下:
错误:401 - {"error":{"code":"401","message": "The Search Operation under Web Search API - v7 is not supported with the current subscription key and pricing tier Bing.CustomSearch.F0."}}

@yokingma
Copy link
Owner

支持啊,用的是微软云的配置吗?是不是你的微软云订阅配置有问题?

@lbersl
Copy link
Author

lbersl commented Sep 29, 2024

支持啊,用的是微软云的配置吗?是不是你的微软云订阅配置有问题?

是在微软云里面申请的免费的key,而且也在微软的云系统上面输入key测试了,能正常返回数据

@yokingma
Copy link
Owner

yokingma commented Oct 7, 2024

我测试了下我的bing是正常的,也是免费订阅的:

API 类型:Bing Search
定价层:免费
终结点:https://api.bing.microsoft.com/

错误信息提到 "Web Search API - v7" (这个的endpiont是/v7.0/search),你可能使用的是 Custom Search API 的密钥,所以估计你需要修改下endponit: /v7.0/custom/search

修改位置 /backend/utils/constant.ts:

export const EndPoint = {
  BING_SEARCH_V7_ENDPOINT: 'https://api.bing.microsoft.com/v7.0/search',
  GOOGLE_SEARCH_ENDPOINT: 'https://www.googleapis.com/customsearch/v1'
};

@lbersl
Copy link
Author

lbersl commented Oct 13, 2024

收到,我去测试一下

@lbersl
Copy link
Author

lbersl commented Oct 13, 2024

API 类型:Bing Custom Search
定价层:免费
终结点:https://api.bing.microsoft.com/
我的是这个

@lbersl
Copy link
Author

lbersl commented Oct 13, 2024

我也修改成这样了
BING_SEARCH_V7_ENDPOINT: 'https://api.bing.microsoft.com/v7.0/custom/search
还是不行

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

No branches or pull requests

2 participants