@bolloon/bolloon-agent 0.2.13 → 0.2.14
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/dist/cli-entry.js +1 -1
- package/dist/llm/config-store.js +7 -2
- package/dist/llm/pi-ai.js +2 -0
- package/package.json +2 -2
package/dist/cli-entry.js
CHANGED
|
@@ -23,7 +23,7 @@ const YELLOW = '\x1b[33m';
|
|
|
23
23
|
const GREEN = '\x1b[32m';
|
|
24
24
|
const MAGENTA = '\x1b[35m';
|
|
25
25
|
// 版本信息 — 与 package.json:version 同步, 否则 banner 会显示过时版本误导用户
|
|
26
|
-
const VERSION = '0.2.
|
|
26
|
+
const VERSION = '0.2.14';
|
|
27
27
|
function log(msg, color = RESET) {
|
|
28
28
|
console.log(`${color}${msg}${RESET}`);
|
|
29
29
|
}
|
package/dist/llm/config-store.js
CHANGED
|
@@ -38,7 +38,7 @@ export const DEFAULT_PROVIDER_CONFIGS = {
|
|
|
38
38
|
enabled: false,
|
|
39
39
|
apiKey: '',
|
|
40
40
|
baseUrl: 'https://generativelanguage.googleapis.com/v1beta',
|
|
41
|
-
model: 'gemini-
|
|
41
|
+
model: 'gemini-2.5-pro',
|
|
42
42
|
temperature: 0.7,
|
|
43
43
|
maxTokens: 4096,
|
|
44
44
|
requiresApiKey: true
|
|
@@ -121,7 +121,12 @@ export const PROVIDER_INFO = {
|
|
|
121
121
|
openai: { name: 'OpenAI', description: 'GPT-4, GPT-3.5 等模型', requiresApiKey: true, models: ['gpt-4.1', 'gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo', 'gpt-3.5-turbo'] },
|
|
122
122
|
anthropic: { name: 'Anthropic', description: 'Claude 3.5+ 系列模型', requiresApiKey: true, models: ['claude-sonnet-4-5-20250929', 'claude-3-5-sonnet-20241022', 'claude-3-5-haiku-20241022', 'claude-3-opus-20240229'] },
|
|
123
123
|
openrouter: { name: 'OpenRouter', description: '聚合多个 AI 供应商', requiresApiKey: true, models: ['anthropic/claude-sonnet-4.5', 'anthropic/claude-3.5-sonnet'] },
|
|
124
|
-
gemini: { name: 'Google Gemini', description: 'Gemini 系列模型', requiresApiKey: true, models: [
|
|
124
|
+
gemini: { name: 'Google Gemini', description: 'Gemini 系列模型', requiresApiKey: true, models: [
|
|
125
|
+
'gemini-3.5-flash', // 2026-06 官方推荐 stable 旗舰 (https://ai.google.dev/gemini-api/docs/models)
|
|
126
|
+
'gemini-2.5-pro', // 高级推理, 仍为 GA
|
|
127
|
+
'gemini-3.1-flash-lite', // 成本敏感场景
|
|
128
|
+
'gemini-flash-latest', // 滚动 alias → 当前 stable Flash
|
|
129
|
+
] },
|
|
125
130
|
ollama: { name: 'Ollama', description: '本地 LLM 运行框架', requiresApiKey: false },
|
|
126
131
|
minimax: {
|
|
127
132
|
name: 'MiniMax',
|
package/dist/llm/pi-ai.js
CHANGED
|
@@ -255,6 +255,8 @@ export class PiAIModel {
|
|
|
255
255
|
anthropic: this.config.model || 'claude-sonnet-4-5-20250929',
|
|
256
256
|
ollama: this.config.model || 'llama3.2',
|
|
257
257
|
openrouter: this.config.model || 'anthropic/claude-sonnet-4.5',
|
|
258
|
+
// Pinned to 2.5-pro: the only `-pro` model that is GA per Google docs.
|
|
259
|
+
// The 3.x line ships as `-flash` only — there is no `gemini-3.x-pro`.
|
|
258
260
|
gemini: this.config.model || 'gemini-2.5-pro',
|
|
259
261
|
minimax: this.config.model || process.env.MINIMAX_MODEL || 'MiniMax-M3',
|
|
260
262
|
deepseek: this.config.model || process.env.DEEPSEEK_MODEL || 'deepseek-chat',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolloon/bolloon-agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "P2P AI Document Agent - 全局安装后执行 `bolloon` 启动产品",
|
|
6
6
|
"main": "dist/cli-entry.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"src/constraint-runtime"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@bolloon/bolloon-agent": "^0.2.
|
|
51
|
+
"@bolloon/bolloon-agent": "^0.2.14",
|
|
52
52
|
"@bolloon/constraint-runtime": "0.1.0",
|
|
53
53
|
"@capacitor/core": "^8.4.1",
|
|
54
54
|
"@capacitor/ios": "^8.4.1",
|