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