-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ RUN npm i -g [email protected] | |
|
||
COPY package.json ./ | ||
|
||
COPY patches ./patches | ||
|
||
RUN pnpm install | ||
|
||
COPY . . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "cloudflare-ai-web", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
|
@@ -27,5 +27,10 @@ | |
"highlight.js": "^11.9.0", | ||
"markdown-it": "^14.1.0" | ||
}, | ||
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0" | ||
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@google/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 4290f816871d5e88e44e264fa47b2960cde864a7..64647480b2d600d8f163a15ef7ce49920b04bae5 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -241,7 +241,7 @@ class GoogleGenerativeAIRequestInputError extends GoogleGenerativeAIError { | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
-const DEFAULT_BASE_URL = "https://generativelanguage.googleapis.com"; | ||
+const DEFAULT_BASE_URL = process.env.G_API_URL || "https://generativelanguage.googleapis.com"; | ||
const DEFAULT_API_VERSION = "v1beta"; | ||
/** | ||
* We can't `require` package.json if this runs on web. We will use rollup to | ||
diff --git a/dist/index.mjs b/dist/index.mjs | ||
index aabb1c97ad6ec5af1e8e736da9d3dc23c478cb09..b02db137b30e5f77e7a5d68657b1fbc19581c8f2 100644 | ||
--- a/dist/index.mjs | ||
+++ b/dist/index.mjs | ||
@@ -239,7 +239,7 @@ class GoogleGenerativeAIRequestInputError extends GoogleGenerativeAIError { | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
-const DEFAULT_BASE_URL = "https://generativelanguage.googleapis.com"; | ||
+const DEFAULT_BASE_URL = process.env.G_API_URL || "https://generativelanguage.googleapis.com"; | ||
const DEFAULT_API_VERSION = "v1beta"; | ||
/** | ||
* We can't `require` package.json if this runs on web. We will use rollup to |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters