-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: support bearer token #745
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
danielhjz
commented
Aug 17, 2024
- Description:
- 修改API V2鉴权和调用逻辑支持bearer token鉴权,使用iam ak/sk可以自动刷新token
- 支持申请Bear token用于分发
- 支持完全定制的URL组成用于接入不同环境的推理API。
- Issue: python release 0.4.6 #744
- Dependencies:
- Tag maintainer: @ZingLix @Dobiichi-Origami.
* support custom retry codes * add custom retry code example
* Update evaluation_manager.py * Update consts.py
* 添加 AFSDatasource * Debug
* 添加数据集 V2 API * 追加注释
* Fix unclosed aiohttp session whlie exception raised * format and lint * Update http_client.py --------- Co-authored-by: NuODaniel <[email protected]>
danielhjz
added a commit
that referenced
this pull request
Aug 17, 2024
* Create main.ipynb * feat: support bearer token (#745) * feat: add support for qianfan console api calls (#732) * doc: 增加 go 自定义错误码文档 (#733) * support custom retry codes * add custom retry code example * release go v0.0.11 (#734) * fix: api v2 & bearer token * fix: api v2 * fix: lint and update version * Update evaluation_manager.py (#736) * Update evaluation_manager.py * Update consts.py * Afs datasource (#737) * 添加 AFSDatasource * Debug * feat: 添加数据集 V2 API (#739) * 添加数据集 V2 API * 追加注释 * fix text2img model list (#741) * Fix unclosed aiohttp session whlie exception raised (#743) * Fix unclosed aiohttp session whlie exception raised * format and lint * Update http_client.py --------- Co-authored-by: NuODaniel <[email protected]> * fix: merge --------- Co-authored-by: Azure99 <[email protected]> Co-authored-by: Liu Jun <[email protected]> Co-authored-by: AlexT <[email protected]> Co-authored-by: Dobiichi-Origami <[email protected]> Co-authored-by: Guocheng <[email protected]> --------- Co-authored-by: NuODaniel <[email protected]> Co-authored-by: Azure99 <[email protected]> Co-authored-by: Liu Jun <[email protected]> Co-authored-by: Dobiichi-Origami <[email protected]> Co-authored-by: Guocheng <[email protected]>
danielhjz
added a commit
that referenced
this pull request
Aug 28, 2024
* Create main.ipynb * feat: support bearer token (#745) * feat: add support for qianfan console api calls (#732) * doc: 增加 go 自定义错误码文档 (#733) * support custom retry codes * add custom retry code example * release go v0.0.11 (#734) * fix: api v2 & bearer token * fix: api v2 * fix: lint and update version * Update evaluation_manager.py (#736) * Update evaluation_manager.py * Update consts.py * Afs datasource (#737) * 添加 AFSDatasource * Debug * feat: 添加数据集 V2 API (#739) * 添加数据集 V2 API * 追加注释 * fix text2img model list (#741) * Fix unclosed aiohttp session whlie exception raised (#743) * Fix unclosed aiohttp session whlie exception raised * format and lint * Update http_client.py --------- Co-authored-by: NuODaniel <[email protected]> * fix: merge --------- Co-authored-by: Azure99 <[email protected]> Co-authored-by: Liu Jun <[email protected]> Co-authored-by: AlexT <[email protected]> Co-authored-by: Dobiichi-Origami <[email protected]> Co-authored-by: Guocheng <[email protected]> * Update main.ipynb * chore: remove useless logs --------- Co-authored-by: NuODaniel <[email protected]> Co-authored-by: Azure99 <[email protected]> Co-authored-by: Liu Jun <[email protected]> Co-authored-by: Dobiichi-Origami <[email protected]> Co-authored-by: Guocheng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.