koishi-plugin-chatluna-google-gemini-adapter 1.2.20 → 1.2.21
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 +8 -3
- package/lib/index.mjs +9 -3
- package/package.json +3 -3
package/lib/index.cjs
CHANGED
|
@@ -618,7 +618,10 @@ var GeminiRequester = class extends import_api.ModelRequester {
|
|
|
618
618
|
yield chunk.generation;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
const finalContent = this._handleFinalContent(
|
|
621
|
+
const finalContent = this._handleFinalContent(
|
|
622
|
+
reasoningContent,
|
|
623
|
+
groundingContent.value
|
|
624
|
+
);
|
|
622
625
|
if (finalContent != null) {
|
|
623
626
|
yield finalContent;
|
|
624
627
|
}
|
|
@@ -906,8 +909,10 @@ var GeminiClient = class extends import_client.PlatformModelAndEmbeddingsClient
|
|
|
906
909
|
name: model.name,
|
|
907
910
|
maxTokens: model.inputTokenLimit,
|
|
908
911
|
type: model.name.includes("embedding") ? import_types.ModelType.embeddings : import_types.ModelType.llm,
|
|
909
|
-
|
|
910
|
-
|
|
912
|
+
capabilities: [
|
|
913
|
+
import_types.ModelCapabilities.ImageInput,
|
|
914
|
+
import_types.ModelCapabilities.ToolCall
|
|
915
|
+
]
|
|
911
916
|
};
|
|
912
917
|
if (model.name.includes("gemini-2.5") && !model.name.includes("pro") && !model.name.includes("image")) {
|
|
913
918
|
if (!model.name.includes("-thinking")) {
|
package/lib/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
ChatLunaEmbeddings
|
|
31
31
|
} from "koishi-plugin-chatluna/llm-core/platform/model";
|
|
32
32
|
import {
|
|
33
|
+
ModelCapabilities,
|
|
33
34
|
ModelType
|
|
34
35
|
} from "koishi-plugin-chatluna/llm-core/platform/types";
|
|
35
36
|
import {
|
|
@@ -613,7 +614,10 @@ var GeminiRequester = class extends ModelRequester {
|
|
|
613
614
|
yield chunk.generation;
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
const finalContent = this._handleFinalContent(
|
|
617
|
+
const finalContent = this._handleFinalContent(
|
|
618
|
+
reasoningContent,
|
|
619
|
+
groundingContent.value
|
|
620
|
+
);
|
|
617
621
|
if (finalContent != null) {
|
|
618
622
|
yield finalContent;
|
|
619
623
|
}
|
|
@@ -901,8 +905,10 @@ var GeminiClient = class extends PlatformModelAndEmbeddingsClient {
|
|
|
901
905
|
name: model.name,
|
|
902
906
|
maxTokens: model.inputTokenLimit,
|
|
903
907
|
type: model.name.includes("embedding") ? ModelType.embeddings : ModelType.llm,
|
|
904
|
-
|
|
905
|
-
|
|
908
|
+
capabilities: [
|
|
909
|
+
ModelCapabilities.ImageInput,
|
|
910
|
+
ModelCapabilities.ToolCall
|
|
911
|
+
]
|
|
906
912
|
};
|
|
907
913
|
if (model.name.includes("gemini-2.5") && !model.name.includes("pro") && !model.name.includes("image")) {
|
|
908
914
|
if (!model.name.includes("-thinking")) {
|
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.2.
|
|
4
|
+
"version": "1.2.21",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"adapter"
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@chatluna/v1-shared-adapter": "^1.0.
|
|
65
|
+
"@chatluna/v1-shared-adapter": "^1.0.4",
|
|
66
66
|
"@langchain/core": "^0.3.43",
|
|
67
67
|
"zod": "^3.25.0-canary.20250211T214501",
|
|
68
68
|
"zod-to-json-schema": "^3.24.5"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"koishi": "^4.18.7",
|
|
76
|
-
"koishi-plugin-chatluna": "^1.3.0-alpha.
|
|
76
|
+
"koishi-plugin-chatluna": "^1.3.0-alpha.16"
|
|
77
77
|
},
|
|
78
78
|
"koishi": {
|
|
79
79
|
"description": {
|