Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default apiVersion to "v1beta" #94

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Change default apiVersion to "v1beta" #94

merged 2 commits into from
Apr 12, 2024

Conversation

hsubox76
Copy link
Collaborator

Setting the default apiVersion to "v1beta" matches the other GoogleAI server SDKs (Go and Python).

For web users, this will be slightly different from other client SDKs such as Swift and Kotlin, which default to "v1".

Copy link

changeset-bot bot commented Apr 11, 2024

🦋 Changeset detected

Latest commit: eac9473

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@google/generative-ai Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hsubox76 hsubox76 merged commit 79b7651 into main Apr 12, 2024
3 checks passed
@hsubox76 hsubox76 deleted the ch-default-version branch April 12, 2024 21:19
@LindaLawton
Copy link

LindaLawton commented Apr 15, 2024

can you tell me then how to access the file upload and file list methods? using this Prompting with media files and here File prompting strategies

i set the api version in getGenerativeModel but this really doesn't seam the way to be able to access the file upload methods. as they arnt or shouldn't IMO be part of getting a Generative Model

  const model = genAI.getGenerativeModel({ model: MODEL_NAME},{apiVersion: 'v1beta',});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants