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

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.
Files changed (2) hide show
  1. package/lib/utils.d.ts +1 -1
  2. package/package.json +10 -10
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.0",
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.0"
76
76
  },
77
77
  "koishi": {
78
78
  "description": {