aicodeswitch 3.0.3 → 3.0.4
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 -0
- package/dist/server/fs-database.js +244 -42
- package/dist/server/main.js +7 -1
- package/dist/server/proxy-server.js +247 -6
- package/dist/server/transformers/gemini.js +625 -0
- package/dist/server/transformers/streaming.js +563 -7
- package/dist/types/index.js +1 -0
- package/dist/ui/assets/{index-DgBQpyCC.js → index-DyW-TIXE.js} +81 -76
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/schema/gemini.schema.md +11 -0
package/dist/ui/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AI Code Switch</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-DyW-TIXE.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="./assets/index-BFZeqM0H.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aicodeswitch",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
|
|
5
5
|
"author": "tangshuang",
|
|
6
6
|
"license": "GPL-3.0",
|
package/schema/gemini.schema.md
CHANGED
|
@@ -805,6 +805,17 @@ x-goog-api-key: YOUR_API_KEY
|
|
|
805
805
|
Content-Type: application/json
|
|
806
806
|
```
|
|
807
807
|
|
|
808
|
+
### 在 AI Code Switch 中配置 Gemini
|
|
809
|
+
|
|
810
|
+
**API URL 配置**:
|
|
811
|
+
- 只需填写 base 地址:`https://generativelanguage.googleapis.com`
|
|
812
|
+
- 代理会自动根据模型拼接完整 URL(如 `/v1beta/models/gemini-2.0-flash:generateContent`)
|
|
813
|
+
|
|
814
|
+
**认证方式**:
|
|
815
|
+
- 选择 `GOOGLE_API_KEY` (x-goog-api-key) 认证方式
|
|
816
|
+
- 或选择 `自动`,系统会根据 Gemini 类型自动使用 x-goog-api-key
|
|
817
|
+
- API Key 从你的 Google AI Studio 获取
|
|
818
|
+
|
|
808
819
|
### 支持的 MIME 类型
|
|
809
820
|
|
|
810
821
|
**图像**:
|