Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

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".

@changeset-bot
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

@hsubox76 hsubox76 requested a review from lahirumaramba April 11, 2024 23:29
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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants