-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add title parameter to all static functions in Schema class #14971
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
Add title parameter to all static functions in Schema class #14971
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback. |
Hi @andrewheard, I have checked that both Vertex AI and Gemini API accepts the title parameter. References: Also, I was unable to run unit test locally due to some unsupported architecture error on my IPhone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @SeanChinJunKai! This looks great. The two CI failures (the quickstart and integration tests) are just because you're working from a fork, nothing wrong with your code changes.
I also added a bunch of titles in the integration test and ran them locally. Everything worked as expected. 😃 Don't worry about updating the integration tests though (too much of a pain to do for external contributors).
If you have time though, would be great to add title
to the unit tests in https://github.com/firebase/firebase-ios-sdk/blob/5902b4087de393025cfda096091ad08743c3f3f2/FirebaseAI/Tests/Unit/Types/SchemaTests.swift.
Hey @andrewheard, thanks for the help. I'll make the changes and add the unit tests later |
Thanks @SeanChinJunKai Looks like a styling and unit test issue remain |
Hi @paulb777, I have fixed the styling issue. Trying to resolve the unit test issue but im unable to run unit tests locally |
Thanks, @SeanChinJunKai! I think I know why the unit tests are failing. We're using the following setting for the
The Just saw your new commit... you figured this out already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @SeanChinJunKai! LGTM, just need to revert the one Package.swift
line change and we're good to merge 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feature request and implementing it, @SeanChinJunKai! Let us know if there's anything else we can help with, if you have any more feature requests, or if you build something cool with the SDK 😄
Thanks @andrewheard. I'm currently leveraging this sdk to build a Firebase AI KMP SDK. I'm curious to know why there is objective-c interopability for modules such as auth 🧐 |
@SeanChinJunKai Thanks for the contribution! Firebase has been around for years and has many customers with large chunks of Objective-C code. While many of our newer APIs are Swift only, we're still continuing to support the longer-lived APIs in both languages. |
Hi @paulb777 thanks for the response |
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
Closes #14961
Testing
API Changes
us make Firebase APIs better, please propose your change in a feature request so that we
can discuss it together.