@luffysolution/omnischolar-pi 0.1.21 → 0.1.22

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.
@@ -96,7 +96,7 @@ The service-account file is used locally to obtain an OAuth token and is never w
96
96
 
97
97
  Atlas, fal, Vertex, and DashScope/Qwen expose different catalog capabilities. Atlas, fal, Vertex, and DashScope/Qwen have small built-in model sets checked against official documentation; when `modelCatalogEndpoint` is not configured, custom services make a best-effort request to `baseUrl/models`. If a downstream service has no catalog endpoint, or its models lack explicit capability fields, the tool falls back to the explicit model contracts in `models` and never infers image capabilities from a model name.
98
98
 
99
- The OpenAI example configuration presets `gpt-image-2`, `gpt-image-2.5-sunburst`, and `gpt-image-2.5-flare`; the Google/Vertex examples preset `gemini-3.1-flash-image`, `gemini-3.1-flash-lite-image`, and `gemini-3-pro-image`. These are model and capability presets, not entitlement guarantees.
99
+ The official OpenAI, Google, and Vertex configurations rely on their model catalogs or built-in official catalogs and do not duplicate model pins. The custom example configuration presets `gpt-image-2`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-flare`, `gemini-3.1-flash-image`, `gemini-3.1-flash-lite-image`, and `gemini-3-pro-image` for OpenAI/Gemini-compatible services without a model catalog. These presets are not entitlement guarantees.
100
100
 
101
101
  ## Generate and edit
102
102
 
@@ -96,7 +96,7 @@ Vertex AI 可使用 service-account JSON:
96
96
 
97
97
  Atlas、fal、Vertex、DashScope/Qwen 和自定义服务的模型目录能力不同。Atlas、fal、Vertex、DashScope/Qwen 已提供少量基于官方文档核对的内置模型;自定义服务在未配置 `modelCatalogEndpoint` 时会尽力尝试 `baseUrl/models`。如果下游没有模型目录接口,或返回的模型没有明确能力字段,工具会回退到 `models` 中的显式模型合同,不会仅凭模型名推断图片能力。
98
98
 
99
- OpenAI 示例配置预设 `gpt-image-2`、`gpt-image-2.5-sunburst` 和 `gpt-image-2.5-flare`;Google/Vertex 示例配置预设 `gemini-3.1-flash-image`、`gemini-3.1-flash-lite-image` 和 `gemini-3-pro-image`。这些是模型 ID 与能力预设,不代表账号已经开通对应模型。
99
+ 官方 OpenAI、Google 和 Vertex 配置默认使用模型目录或内置官方目录发现,不需要在 `models` 中重复预设。custom 示例配置预设 `gpt-image-2`、`gpt-image-2.5-sunburst`、`gpt-image-2.5-flare`、`gemini-3.1-flash-image`、`gemini-3.1-flash-lite-image` 和 `gemini-3-pro-image`,供没有模型目录接口的 OpenAI/Gemini 兼容服务使用;这些预设不代表下游账号已经开通对应模型。
100
100
 
101
101
  ## 生成与编辑
102
102
 
@@ -131,20 +131,7 @@
131
131
  "apiKey": "",
132
132
  "apiKeyEnv": null,
133
133
  "baseUrl": "https://api.openai.com/v1",
134
- "models": {
135
- "gpt-image-2": {
136
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
137
- "paid": true
138
- },
139
- "gpt-image-2.5-sunburst": {
140
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
141
- "paid": true
142
- },
143
- "gpt-image-2.5-flare": {
144
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
145
- "paid": true
146
- }
147
- },
134
+ "models": {},
148
135
  "options": {}
149
136
  },
150
137
  "google": {
@@ -152,20 +139,7 @@
152
139
  "apiKey": "",
153
140
  "apiKeyEnv": null,
154
141
  "baseUrl": "https://generativelanguage.googleapis.com/v1beta",
155
- "models": {
156
- "gemini-3.1-flash-image": {
157
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
158
- "paid": true
159
- },
160
- "gemini-3.1-flash-lite-image": {
161
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
162
- "paid": true
163
- },
164
- "gemini-3-pro-image": {
165
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
166
- "paid": true
167
- }
168
- },
142
+ "models": {},
169
143
  "options": {}
170
144
  },
171
145
  "vertex": {
@@ -175,20 +149,7 @@
175
149
  "credentialsFile": null,
176
150
  "project": null,
177
151
  "location": "global",
178
- "models": {
179
- "gemini-3.1-flash-image": {
180
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
181
- "paid": true
182
- },
183
- "gemini-3.1-flash-lite-image": {
184
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
185
- "paid": true
186
- },
187
- "gemini-3-pro-image": {
188
- "capabilities": ["text-to-image", "image-to-image", "edit", "multi-reference"],
189
- "paid": true
190
- }
191
- },
152
+ "models": {},
192
153
  "options": {}
193
154
  },
194
155
  "xai": {
@@ -248,7 +209,27 @@
248
209
  "apiKeyEnv": null,
249
210
  "baseUrl": "https://images.example.edu/v1",
250
211
  "models": {
251
- "explicit-model-id": {
212
+ "gpt-image-2": {
213
+ "capabilities": ["text-to-image"],
214
+ "paid": true
215
+ },
216
+ "gpt-image-2.5-sunburst": {
217
+ "capabilities": ["text-to-image"],
218
+ "paid": true
219
+ },
220
+ "gpt-image-2.5-flare": {
221
+ "capabilities": ["text-to-image"],
222
+ "paid": true
223
+ },
224
+ "gemini-3.1-flash-image": {
225
+ "capabilities": ["text-to-image"],
226
+ "paid": true
227
+ },
228
+ "gemini-3.1-flash-lite-image": {
229
+ "capabilities": ["text-to-image"],
230
+ "paid": true
231
+ },
232
+ "gemini-3-pro-image": {
252
233
  "capabilities": ["text-to-image"],
253
234
  "paid": true
254
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luffysolution/omnischolar-pi",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Pi MCP bridge for the OmniScholar research toolkit",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
2
2
  import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
3
3
  import { Type } from "typebox";
4
- const CLIENT_INFO = { name: "omnischolar-pi", version: "0.1.21" };
4
+ const CLIENT_INFO = { name: "omnischolar-pi", version: "0.1.22" };
5
5
  export function resultText(result) {
6
6
  return result.content
7
7
  .map((item) => {