koishi-plugin-chatluna-google-gemini-adapter 1.3.1 → 1.3.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/lib/index.cjs +6 -2
- package/lib/index.mjs +6 -2
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -980,9 +980,13 @@ var GeminiClient = class extends import_client.PlatformModelAndEmbeddingsClient
|
|
|
980
980
|
import_types2.ModelCapabilities.ToolCall
|
|
981
981
|
]
|
|
982
982
|
};
|
|
983
|
-
const thinkingModel = [
|
|
983
|
+
const thinkingModel = [
|
|
984
|
+
"gemini-2.5-pro",
|
|
985
|
+
"gemini-2.5-flash",
|
|
986
|
+
"gemini-3.0-pro"
|
|
987
|
+
];
|
|
984
988
|
if (thinkingModel.some(
|
|
985
|
-
(name2) => name2.includes(model.name.toLowerCase())
|
|
989
|
+
(name2) => name2.includes(model.name.toLowerCase()) && !name2.includes("image")
|
|
986
990
|
)) {
|
|
987
991
|
if (!model.name.includes("-thinking")) {
|
|
988
992
|
models.push(
|
package/lib/index.mjs
CHANGED
|
@@ -977,9 +977,13 @@ var GeminiClient = class extends PlatformModelAndEmbeddingsClient {
|
|
|
977
977
|
ModelCapabilities.ToolCall
|
|
978
978
|
]
|
|
979
979
|
};
|
|
980
|
-
const thinkingModel = [
|
|
980
|
+
const thinkingModel = [
|
|
981
|
+
"gemini-2.5-pro",
|
|
982
|
+
"gemini-2.5-flash",
|
|
983
|
+
"gemini-3.0-pro"
|
|
984
|
+
];
|
|
981
985
|
if (thinkingModel.some(
|
|
982
|
-
(name2) => name2.includes(model.name.toLowerCase())
|
|
986
|
+
(name2) => name2.includes(model.name.toLowerCase()) && !name2.includes("image")
|
|
983
987
|
)) {
|
|
984
988
|
if (!model.name.includes("-thinking")) {
|
|
985
989
|
models.push(
|
package/package.json
CHANGED