mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
- Updated the resolution and checksum for the @ai-sdk/google patch in yarn.lock. - Enhanced the getModelPath function to check for "models/" in the modelId before returning the path, improving its robustness.
14 lines
511 B
Diff
Vendored
14 lines
511 B
Diff
Vendored
diff --git a/dist/index.mjs b/dist/index.mjs
|
|
index 110f37ec18c98b1d55ae2b73cc716194e6f9094d..17e109b7778cbebb904f1919e768d21a2833d965 100644
|
|
--- a/dist/index.mjs
|
|
+++ b/dist/index.mjs
|
|
@@ -448,7 +448,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
|