Skip to content

Commit

Permalink
Change default apiVersion to "v1beta" (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Apr 12, 2024
1 parent 400e2cb commit 79b7651
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-crabs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@google/generative-ai": minor
---

Set default API version to "v1beta" to match Go and Python.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ https://ai.google.dev/docs

Find reference docs for this SDK [here in the repo](/docs/reference/generative-ai.md).

## Changelog
- `@google/generative-ai` - [CHANGELOG.md](/main/packages/main/CHANGELOG.md)

## Contributing

See [Contributing](/docs/contributing.md) for more information on contributing to the Google AI JavaScript SDK.
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/requests/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { GoogleGenerativeAIError } from "../errors";

export const DEFAULT_BASE_URL = "https://generativelanguage.googleapis.com";

export const DEFAULT_API_VERSION = "v1";
export const DEFAULT_API_VERSION = "v1beta";

/**
* We can't `require` package.json if this runs on web. We will use rollup to
Expand Down

0 comments on commit 79b7651

Please sign in to comment.