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

Make generativeModel an instance method of VertexAI #12599

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

andrewheard
Copy link
Contributor

#no-changelog

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

@@ -20,70 +20,81 @@ import Foundation
@_implementationOnly import FirebaseCoreExtension

@available(iOS 15.0, macOS 11.0, macCatalyst 15.0, *)
@objc(FIRVertexAI)
Copy link
Member

Choose a reason for hiding this comment

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

Does it need to be objc to be initialized by the Component system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. I was seeing Cannot convert value of type '(any VertexAIProvider).Type' to expected argument type 'Protocol' when I dropped the @objcs.

Copy link
Member

Choose a reason for hiding this comment

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

But it is dropped here?

@andrewheard
Copy link
Contributor Author

Update main/FirebaseCore/Sources/FIRApp.m#L828?

@paulb777 Already set to "fire-vtx" in the vertex-ai branch (42df2e3#diff-9c248fb2bb20f48431c46f7a4c98f41eadaeb637147b79772de10c443dde1edcR832) but could rename.

@andrewheard andrewheard merged commit f818a54 into vertex-ai Mar 21, 2024
36 checks passed
@andrewheard andrewheard deleted the ah/vertex-ai-component branch March 21, 2024 20:57
@firebase firebase locked and limited conversation to collaborators Apr 21, 2024
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.

2 participants