koishi-plugin-chatluna-google-gemini-adapter 1.1.4 → 1.2.0-alpha.1

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/lib/index.cjs CHANGED
@@ -265,7 +265,9 @@ __name(formatToolsToGeminiAITools, "formatToolsToGeminiAITools");
265
265
  function formatToolToGeminiAITool(tool) {
266
266
  const parameters = removeAdditionalProperties(
267
267
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
268
- (0, import_zod_to_json_schema.zodToJsonSchema)(tool.schema)
268
+ (0, import_zod_to_json_schema.zodToJsonSchema)(tool.schema, {
269
+ allowedAdditionalProperties: void 0
270
+ })
269
271
  );
270
272
  return {
271
273
  name: tool.name,
package/lib/index.mjs CHANGED
@@ -249,7 +249,9 @@ __name(formatToolsToGeminiAITools, "formatToolsToGeminiAITools");
249
249
  function formatToolToGeminiAITool(tool) {
250
250
  const parameters = removeAdditionalProperties(
251
251
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
252
- zodToJsonSchema(tool.schema)
252
+ zodToJsonSchema(tool.schema, {
253
+ allowedAdditionalProperties: void 0
254
+ })
253
255
  );
254
256
  return {
255
257
  name: tool.name,
package/lib/utils.d.ts CHANGED
@@ -8,4 +8,4 @@ export declare function partAsTypeCheck<T extends ChatPart>(part: ChatPart, chec
8
8
  export declare function formatToolsToGeminiAITools(tools: StructuredTool[], config: Config, model: string): Record<string, any>;
9
9
  export declare function formatToolToGeminiAITool(tool: StructuredTool): ChatCompletionFunction;
10
10
  export declare function messageTypeToGeminiRole(type: MessageType): ChatCompletionResponseMessageRoleEnum;
11
- export declare function convertDeltaToMessageChunk(delta: Record<string, any>, defaultRole?: ChatCompletionResponseMessageRoleEnum): AIMessageChunk | HumanMessageChunk | SystemMessageChunk | ChatMessageChunk;
11
+ export declare function convertDeltaToMessageChunk(delta: Record<string, any>, defaultRole?: ChatCompletionResponseMessageRoleEnum): HumanMessageChunk | AIMessageChunk | SystemMessageChunk | ChatMessageChunk;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-google-gemini-adapter",
3
3
  "description": "google-gemini adapter for chatluna",
4
- "version": "1.1.4",
4
+ "version": "1.2.0-alpha.1",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",
@@ -34,16 +34,16 @@
34
34
  },
35
35
  "resolutions": {
36
36
  "@langchain/core": "0.3.18",
37
- "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.15"
37
+ "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.19"
38
38
  },
39
39
  "overrides": {
40
40
  "@langchain/core": "0.3.18",
41
- "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.15"
41
+ "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.19"
42
42
  },
43
43
  "pnpm": {
44
44
  "overrides": {
45
45
  "@langchain/core": "0.3.18",
46
- "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.15"
46
+ "js-tiktoken": "npm:@dingyi222666/js-tiktoken@^1.0.19"
47
47
  }
48
48
  },
49
49
  "engines": {
@@ -62,17 +62,17 @@
62
62
  "adapter"
63
63
  ],
64
64
  "dependencies": {
65
- "@langchain/core": "^0.3.18",
66
- "zod": "^3.24.0-canary.20241107T043915",
67
- "zod-to-json-schema": "^3.23.5"
65
+ "@langchain/core": "^0.3.43",
66
+ "zod": "^3.25.0-canary.20250211T214501",
67
+ "zod-to-json-schema": "^3.24.5"
68
68
  },
69
69
  "devDependencies": {
70
70
  "atsc": "^2.1.0",
71
- "koishi": "^4.18.4"
71
+ "koishi": "^4.18.7"
72
72
  },
73
73
  "peerDependencies": {
74
- "koishi": "^4.18.4",
75
- "koishi-plugin-chatluna": "^1.1.4"
74
+ "koishi": "^4.18.7",
75
+ "koishi-plugin-chatluna": "^1.2.0-alpha.1"
76
76
  },
77
77
  "koishi": {
78
78
  "description": {