mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
* feat(gemini): update model types and add support for gemini3 variants add new model type identifiers for gemini3 flash and pro variants implement utility functions to detect gemini3 flash and pro models update reasoning configuration and tests for new gemini variants * docs(i18n): update chinese translation for minimal_description * chore: update @ai-sdk/google and @ai-sdk/google-vertex dependencies - Update @ai-sdk/google to version 2.0.49 with patch for model path fix - Update @ai-sdk/google-vertex to version 3.0.94 with updated dependencies * feat(gemini): add thinking level mapping for Gemini 3 models Implement mapping between reasoning effort options and Gemini's thinking levels. Enable thinking config for Gemini 3 models to support advanced reasoning features. * chore: update yarn.lock with patched @ai-sdk/google dependency * test(reasoning): update tests for Gemini model type classification and reasoning options Update test cases to reflect new Gemini model type classifications (gemini2_flash, gemini3_flash, gemini2_pro, gemini3_pro) and their corresponding reasoning effort options. Add tests for Gemini 3 models and adjust existing ones to match current behavior. * docs(reasoning): remove outdated TODO comment about model support
38 lines
1.3 KiB
Diff
Vendored
38 lines
1.3 KiB
Diff
Vendored
diff --git a/dist/index.js b/dist/index.js
|
|
index d004b415c5841a1969705823614f395265ea5a8a..6b1e0dad4610b0424393ecc12e9114723bbe316b 100644
|
|
--- a/dist/index.js
|
|
+++ b/dist/index.js
|
|
@@ -474,7 +474,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
|
|
|
|
// src/get-model-path.ts
|
|
function getModelPath(modelId) {
|
|
- return modelId.includes("/") ? modelId : `models/${modelId}`;
|
|
+ return modelId.includes("models/") ? modelId : `models/${modelId}`;
|
|
}
|
|
|
|
// src/google-generative-ai-options.ts
|
|
diff --git a/dist/index.mjs b/dist/index.mjs
|
|
index 1780dd2391b7f42224a0b8048c723d2f81222c44..1f12ed14399d6902107ce9b435d7d8e6cc61e06b 100644
|
|
--- a/dist/index.mjs
|
|
+++ b/dist/index.mjs
|
|
@@ -480,7 +480,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
|
|
|
|
// src/get-model-path.ts
|
|
function getModelPath(modelId) {
|
|
- return modelId.includes("/") ? modelId : `models/${modelId}`;
|
|
+ return modelId.includes("models/") ? modelId : `models/${modelId}`;
|
|
}
|
|
|
|
// src/google-generative-ai-options.ts
|
|
@@ -1909,8 +1909,7 @@ function createGoogleGenerativeAI(options = {}) {
|
|
}
|
|
var google = createGoogleGenerativeAI();
|
|
export {
|
|
- VERSION,
|
|
createGoogleGenerativeAI,
|
|
- google
|
|
+ google, VERSION
|
|
};
|
|
//# sourceMappingURL=index.mjs.map
|
|
\ No newline at end of file
|