@simonyea/holysheep-cli 1.7.40 → 1.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "1.7.40",
3
+ "version": "1.7.41",
4
4
  "description": "Claude Code/Cursor/Cline API relay for China — ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
5
5
  "keywords": [
6
6
  "openai-china",
@@ -75,7 +75,7 @@ module.exports = {
75
75
  bridge.processProxyPort
76
76
  )
77
77
  },
78
- configure(apiKey, baseUrl) {
78
+ configure(apiKey, baseUrl, baseUrlOpenAI, primaryModel) {
79
79
  const bridgeConfig = buildBridgeConfig(apiKey, baseUrl, readConfig())
80
80
  writeConfig(bridgeConfig)
81
81
 
@@ -85,6 +85,7 @@ module.exports = {
85
85
  settings.env.ANTHROPIC_BASE_URL = BASE_URL_ANTHROPIC
86
86
  settings.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = '1'
87
87
  settings.env.HOLYSHEEP_CLAUDE_LAUNCHER = 'hs'
88
+ if (primaryModel) settings.model = primaryModel
88
89
  // 清理旧的同义字段
89
90
  delete settings.env.ANTHROPIC_API_KEY
90
91
  delete settings.env.HOLYSHEEP_CLAUDE_BRIDGE