Merge upstream changes and resolve conflicts

- Merged latest changes from Wei-Shaw/claude-relay-service
- Resolved conflict in AccountForm.vue to support both Bedrock and improved platform switching logic
- Maintained Bedrock integration while incorporating Gemini pricing improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
andersonby
2025-08-06 19:26:31 +08:00
6 changed files with 215 additions and 15 deletions

View File

@@ -1619,9 +1619,13 @@ const handleGroupRefresh = async () => {
}
// 监听平台变化,重置表单
watch(() => form.value.platform, (newPlatform) => {
watch(() => form.value.platform, (newPlatform, oldPlatform) => {
// 处理添加方式的自动切换
if (newPlatform === 'claude-console' || newPlatform === 'bedrock') {
form.value.addType = 'manual' // Claude Console 和 Bedrock 只支持手动模式
} else if (oldPlatform === 'claude-console' && (newPlatform === 'claude' || newPlatform === 'gemini')) {
// 从 Claude Console 切换到其他平台时,恢复为 OAuth
form.value.addType = 'oauth'
}
// 平台变化时,清空分组选择