@atlisp/agent 0.1.17 → 0.1.19
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/config.js +5 -5
- package/install.ps1 +11 -2
- package/package.json +1 -1
- package/providers/deepseek.js +0 -3
- package/providers/minimax.js +0 -3
- package/providers/openai.js +0 -3
- package/providers/vllm.js +0 -3
package/config.js
CHANGED
|
@@ -58,15 +58,15 @@ function getDefaultConfig() {
|
|
|
58
58
|
return {
|
|
59
59
|
agent: {
|
|
60
60
|
enabled: true,
|
|
61
|
-
maxSteps:
|
|
61
|
+
maxSteps: 10000,
|
|
62
62
|
verbose: false,
|
|
63
63
|
},
|
|
64
64
|
llm: {
|
|
65
|
-
provider: '
|
|
66
|
-
baseURL: '',
|
|
67
|
-
model: '
|
|
65
|
+
provider: 'openai',
|
|
66
|
+
baseURL: 'http://atlisp.org:11434/v1',
|
|
67
|
+
model: 'minimax-m2.5:cloud',
|
|
68
68
|
apiKey: '',
|
|
69
|
-
temperature: 0.
|
|
69
|
+
temperature: 0.1,
|
|
70
70
|
maxTokens: 65536,
|
|
71
71
|
},
|
|
72
72
|
mcp: {
|
package/install.ps1
CHANGED
|
@@ -227,10 +227,16 @@ function Install-Package {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
Write-Host "Installing $packageName from npm registry..." -ForegroundColor Cyan
|
|
230
|
+
$installFailed = $false
|
|
230
231
|
npm install -g @atlisp/agent --silent
|
|
231
232
|
|
|
232
233
|
if ($LASTEXITCODE -ne 0) {
|
|
233
|
-
Write-Host "Error: npm install failed" -ForegroundColor Red
|
|
234
|
+
Write-Host "Error: npm install @atlisp/agent failed, cleaning up..." -ForegroundColor Red
|
|
235
|
+
npm uninstall -g @atlisp/mcp --silent
|
|
236
|
+
$installFailed = $true
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if ($installFailed) {
|
|
234
240
|
exit 1
|
|
235
241
|
}
|
|
236
242
|
|
|
@@ -246,7 +252,10 @@ function Install-Package {
|
|
|
246
252
|
|
|
247
253
|
$runMcp = Read-Host "Start atlisp-agent now? (Y/N)"
|
|
248
254
|
if ($runMcp -eq "Y" -or $runMcp -eq "y") {
|
|
249
|
-
$
|
|
255
|
+
$npmPath = (npm root -g).ToString()
|
|
256
|
+
if ($npmPath -and ($env:Path -notlike "*$npmPath*")) {
|
|
257
|
+
$env:Path = "$npmPath;" + $env:Path
|
|
258
|
+
}
|
|
250
259
|
Write-Host "Starting atlisp-agent ..." -ForegroundColor Cyan
|
|
251
260
|
atlisp-agent chat
|
|
252
261
|
}
|
package/package.json
CHANGED
package/providers/deepseek.js
CHANGED
package/providers/minimax.js
CHANGED
|
@@ -53,9 +53,6 @@ export class MinimaxProvider {
|
|
|
53
53
|
|
|
54
54
|
throw new Error('No response content from Minimax: ' + JSON.stringify(data));
|
|
55
55
|
} catch (error) {
|
|
56
|
-
if (error.message.includes('fetch')) {
|
|
57
|
-
throw new Error(`无法连接到 Minimax API: ${error.message}`);
|
|
58
|
-
}
|
|
59
56
|
throw error;
|
|
60
57
|
}
|
|
61
58
|
}
|
package/providers/openai.js
CHANGED
package/providers/vllm.js
CHANGED