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

feat: support bearer token #745

Merged
merged 12 commits into from
Aug 17, 2024
Merged

Conversation

danielhjz
Copy link
Collaborator

  • 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.

@stonekim stonekim added language/python doc Improvements or additions to documentation labels Aug 17, 2024
danielhjz and others added 7 commits August 17, 2024 15:11
* 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 danielhjz changed the base branch from main to feat-dialogue-cookbook August 17, 2024 07:56
@danielhjz danielhjz merged commit edad164 into feat-dialogue-cookbook Aug 17, 2024
17 of 26 checks passed
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
Labels
doc Improvements or additions to documentation language/go language/python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants