ltcraft-ai-auto 1.7.0 → 1.8.0
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/README.md +1 -1
- package/bin/index.js +2 -2
- package/package.json +1 -1
- package//346/225/231/347/250/213.txt +4 -4
package/README.md
CHANGED
package/bin/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import fs from 'fs';
|
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import os from 'os';
|
|
7
7
|
|
|
8
|
-
const API_BASE_URL = 'https://ai.ltcraft.cn
|
|
8
|
+
const API_BASE_URL = 'https://ai.ltcraft.cn';
|
|
9
9
|
|
|
10
10
|
const colors = {
|
|
11
11
|
reset: '\x1b[0m',
|
|
@@ -680,7 +680,7 @@ async function runCheck() {
|
|
|
680
680
|
async function main() {
|
|
681
681
|
console.log('╔════════════════════════════════════════╗');
|
|
682
682
|
console.log('║ LTCraft AI 配置工具 ║');
|
|
683
|
-
console.log('║ API: https://ai.ltcraft.cn
|
|
683
|
+
console.log('║ API: https://ai.ltcraft.cn ║');
|
|
684
684
|
console.log('╚════════════════════════════════════════╝\n');
|
|
685
685
|
|
|
686
686
|
const tool = await select({
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ Claude Code 会按以下优先级读取配置(文件名通常为 settings.json
|
|
|
21
21
|
JSON
|
|
22
22
|
{
|
|
23
23
|
"env": {
|
|
24
|
-
"ANTHROPIC_BASE_URL": "https://ai.ltcraft.cn
|
|
24
|
+
"ANTHROPIC_BASE_URL": "https://ai.ltcraft.cn",
|
|
25
25
|
"API_TIMEOUT_MS": 3000000,
|
|
26
26
|
"ANTHROPIC_AUTH_TOKEN": "sk-xxxxxxxxxxxxxxxxxxxxxxxx"
|
|
27
27
|
}
|
|
@@ -49,7 +49,7 @@ C:\Users<用户名>.config\opencode\opencode.json
|
|
|
49
49
|
"provider": {
|
|
50
50
|
"anthropic": {
|
|
51
51
|
"options": {
|
|
52
|
-
"baseURL": "https://ai.ltcraft.cn
|
|
52
|
+
"baseURL": "https://ai.ltcraft.cn/v1"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -77,7 +77,7 @@ OpenClaw 配置文件教程(仅配置文件)
|
|
|
77
77
|
"models": {
|
|
78
78
|
"providers": {
|
|
79
79
|
"LTCraft-Anthropic": {
|
|
80
|
-
"baseUrl": "https://ai.ltcraft.cn
|
|
80
|
+
"baseUrl": "https://ai.ltcraft.cn",
|
|
81
81
|
"apiKey": "${你的apikey}",
|
|
82
82
|
"api": "anthropic-messages",
|
|
83
83
|
"models": [
|
|
@@ -86,7 +86,7 @@ OpenClaw 配置文件教程(仅配置文件)
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"LTCraft-Openai": {
|
|
89
|
-
"baseUrl": "https://ai.ltcraft.cn
|
|
89
|
+
"baseUrl": "https://ai.ltcraft.cn/v1",
|
|
90
90
|
"apiKey": "${你的apikey}",
|
|
91
91
|
"api": "openai-completions",
|
|
92
92
|
"models": [
|