opencode-aicodewith-auth 0.1.2 → 0.1.3

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 CHANGED
@@ -59,13 +59,13 @@ User Request → OpenCode → Plugin Auth Hook → Route by Model:
59
59
 
60
60
  ## 支持的模型
61
61
 
62
- | 模型 ID | 显示名称 | 适合场景 |
63
- |---------|---------|---------|
64
- | `aicodewith/gpt-5.2-codex` | GPT-5.2 Codex | 日常编程、代码生成 |
65
- | `aicodewith/gpt-5.2` | GPT-5.2 | 架构设计、逻辑推理 |
66
- | `aicodewith/claude-sonnet-4-5-20250929` | Claude Sonnet 4.5 | 代码审查、文档查询 |
67
- | `aicodewith/claude-opus-4-5-20251101` | Claude Opus 4.5 | 复杂任务、深度思考 |
68
- | `aicodewith/gemini-3-pro-high` | Gemini 3 Pro | 前端 UI、多模态任务 |
62
+ | 模型 ID | 显示名称 | 图片输入 | 适合场景 |
63
+ |---------|---------|:-------:|---------|
64
+ | `aicodewith/gpt-5.2-codex` | GPT-5.2 Codex | ✅ | 日常编程、代码生成 |
65
+ | `aicodewith/gpt-5.2` | GPT-5.2 | ✅ | 架构设计、逻辑推理 |
66
+ | `aicodewith/claude-sonnet-4-5-20250929` | Claude Sonnet 4.5 | ✅ | 代码审查、文档查询 |
67
+ | `aicodewith/claude-opus-4-5-20251101` | Claude Opus 4.5 | ✅ | 复杂任务、深度思考 |
68
+ | `aicodewith/gemini-3-pro-high` | Gemini 3 Pro | ✅ | 前端 UI、多模态任务 |
69
69
 
70
70
  ---
71
71
 
package/dist/index.js CHANGED
@@ -1003,12 +1003,13 @@ var PROVIDER_NPM = new URL(`./provider${PROVIDER_EXT}`, import.meta.url).href;
1003
1003
  var DEFAULT_API = "https://api.openai.com/v1";
1004
1004
  var DEFAULT_ENV = ["AICODEWITH_API_KEY"];
1005
1005
  var DEFAULT_OUTPUT_TOKEN_MAX = 32000;
1006
+ var IMAGE_MODALITIES = { input: ["text", "image"], output: ["text"] };
1006
1007
  var MODEL_CONFIGS = {
1007
- "gpt-5.2-codex": { name: "GPT-5.2 Codex" },
1008
- "gpt-5.2": { name: "GPT-5.2" },
1009
- "claude-sonnet-4-5-20250929": { name: "Claude Sonnet 4.5" },
1010
- "claude-opus-4-5-20251101": { name: "Claude Opus 4.5" },
1011
- "gemini-3-pro-high": { name: "Gemini 3 Pro" }
1008
+ "gpt-5.2-codex": { name: "GPT-5.2 Codex", modalities: IMAGE_MODALITIES },
1009
+ "gpt-5.2": { name: "GPT-5.2", modalities: IMAGE_MODALITIES },
1010
+ "claude-sonnet-4-5-20250929": { name: "Claude Sonnet 4.5", modalities: IMAGE_MODALITIES },
1011
+ "claude-opus-4-5-20251101": { name: "Claude Opus 4.5", modalities: IMAGE_MODALITIES },
1012
+ "gemini-3-pro-high": { name: "Gemini 3 Pro", modalities: IMAGE_MODALITIES }
1012
1013
  };
1013
1014
  var ALLOWED_MODEL_IDS = Object.keys(MODEL_CONFIGS);
1014
1015
  var ALLOWED_MODEL_SET = new Set(ALLOWED_MODEL_IDS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-aicodewith-auth",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OpenCode plugin for AICodewith authentication - Access GPT-5.2, Claude, and Gemini models through AICodewith API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",