mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 08:32:17 +00:00
- Replace .eslintrc.js with .eslintrc.cjs for better ES module compatibility - Add .prettierrc configuration for consistent code formatting - Update package.json with new lint and format scripts - Add nodemon.json for development hot reloading configuration - Standardize code formatting across all JavaScript and Vue files - Update web admin SPA with improved linting rules and formatting - Add prettier configuration to web admin SPA 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
958 B
JavaScript
34 lines
958 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const bedrockRelayService = require('../src/services/bedrockRelayService')
|
|
|
|
async function testBedrockModels() {
|
|
try {
|
|
console.log('🧪 测试Bedrock模型配置...')
|
|
|
|
// 测试可用模型列表
|
|
const models = await bedrockRelayService.getAvailableModels()
|
|
console.log(`📋 找到 ${models.length} 个可用模型:`)
|
|
models.forEach((model) => {
|
|
console.log(` - ${model.id} (${model.name})`)
|
|
})
|
|
|
|
// 测试默认模型
|
|
console.log(`\n🎯 系统默认模型: ${bedrockRelayService.defaultModel}`)
|
|
console.log(`🎯 系统默认小模型: ${bedrockRelayService.defaultSmallModel}`)
|
|
|
|
console.log('\n✅ Bedrock模型配置测试完成')
|
|
process.exit(0)
|
|
} catch (error) {
|
|
console.error('❌ Bedrock模型测试失败:', error)
|
|
process.exit(1)
|
|
}
|
|
}
|
|
|
|
// 如果直接运行此脚本
|
|
if (require.main === module) {
|
|
testBedrockModels()
|
|
}
|
|
|
|
module.exports = { testBedrockModels }
|