mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 03:40:33 +08:00
- 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
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
|