feat(asr): 火山引擎 ASR 新增方舟 API Key 鉴权模式#867
Open
YangLeiSX wants to merge 1 commit into
Open
Conversation
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or 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
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.
User description
摘要
Fixes #(暂无对应 issue,新功能)
为火山引擎 ASR 新增方舟(Ark)API Key 鉴权模式,支持新版语音模型控制台的单 API Key 接入,无需再找 APP ID。
修复 / 新增 / 改进
VolcengineAuthMode枚举(AppIdToken/ApiKey),在同一 provider 内支持两种鉴权模式X-Api-App-Key+X-Api-Access-Key双表头,端点/api/v3/sauc/bigmodel_asyncX-Api-Key单表头,端点/api/v3/plan/sauc/bigmodel_async兼容
auth_mode为空时默认回退到 AppIdToken 模式,行为与之前完全一致测试计划
cargo checkPR Type
Enhancement, Tests, Documentation
Description
Add
VolcengineAuthModeenum supporting AppIdToken and ApiKey modes.Implement dual endpoints, dynamic auth headers, and credential validation.
Update settings UI with auth mode dropdown and conditional fields.
Add i18n translations for 5 languages.
File Walkthrough
6 files
Add VolcengineAuthMode enum and dual endpoint supportAdd auth_mode credential account and status checkRead volcengine auth_mode from credentialsValidate credentials based on auth modeAdd authMode persistence field and account enumAdd auth mode select UI and dynamic field rendering1 files
Update credentials snapshot test for auth_mode5 files
Add English i18n for auth modeAdd Japanese i18n for auth modeAdd Korean i18n for auth modeAdd Chinese Simplified i18n for auth modeAdd Chinese Traditional i18n for auth mode