Skip to content

Commit

Permalink
Update some versions
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Dec 30, 2024
1 parent 02bb437 commit c74293b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const BASE_URL = "https://generativelanguage.googleapis.com";
const API_VERSION = "v1beta";

// https://github.com/google-gemini/generative-ai-js/blob/cf223ff4a1ee5a2d944c53cddb8976136382bee6/src/requests/request.ts#L71
const API_CLIENT = "genai-js/0.19.0"; // npm view @google/generative-ai version
const API_CLIENT = "genai-js/0.21.0"; // npm view @google/generative-ai version
const makeHeaders = (apiKey, more) => ({
"x-goog-api-client": API_CLIENT,
...(apiKey && { "x-goog-api-key": apiKey }),
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "gemini"
main = "src/worker.mjs"
compatibility_date = "2024-01-17"
compatibility_date = "2024-09-23"
compatibility_flags = [ "nodejs_compat" ]

0 comments on commit c74293b

Please sign in to comment.