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

Loosen Role type #74

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Loosen Role type #74

merged 2 commits into from
Apr 3, 2024

Conversation

hsubox76
Copy link
Collaborator

@hsubox76 hsubox76 commented Mar 29, 2024

Strict string literal Role type seems like a good idea but in practice seems to cause TS errors when object literal Contents are passed to generateContent without first casting them as Content (noticed in integration tests).

Copy link

changeset-bot bot commented Mar 29, 2024

🦋 Changeset detected

Latest commit: acf30ba

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 merged commit e636823 into main Apr 3, 2024
3 checks passed
@hsubox76 hsubox76 deleted the ch-role-fix branch April 3, 2024 19:57
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.

2 participants