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

feat(vertexai)!: Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps. #13453

Merged
merged 13 commits into from
Oct 18, 2024

Conversation

cynthiajoan
Copy link
Collaborator

Description

This PR includes all the changes for Vertex AI in Firebase GA launch.
This PR will not be merged until the GA date.
All the changes in this PR has already been reviewed separately.
This is a breaking change.

Related Issues

Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

cynthiajoan and others added 10 commits September 10, 2024 12:47
* fix the sdk name and support platform

* forking off model and chat class

* fork api class

* remove some export content since the next vertexai release will be breaking change.

* fork function calling

* fork off content

* fix for analyzer

* more analyzer fix
* Add corresponding unit test for the fork

* fix issues from analyzer
…13378)

* Add schema support for prompt response

* update schema object, replace requiredProperties to optionalProperties

* api updates (breaking)

* more tweak during api review

* Add format for Schema.string

* fix test files

* Update packages/firebase_vertexai/firebase_vertexai/lib/src/vertex_api.dart

Co-authored-by: Nate Bosch <[email protected]>

* add review feedback

---------

Co-authored-by: Nate Bosch <[email protected]>
* Add schema support for prompt response

* update schema object, replace requiredProperties to optionalProperties

* api updates (breaking)

* more tweak during api review

* Add format for Schema.string

* fix test files

* first sample update

* remove embedding

* api update for function calling

* Update sample code to match the new api

* more code snippet for toolconfig

* apply documentation update

* tweak of the tools

* remove embed related class

* Update packages/firebase_vertexai/firebase_vertexai/example/lib/main.dart

Co-authored-by: Nate Bosch <[email protected]>

* Update packages/firebase_vertexai/firebase_vertexai/example/lib/main.dart

Co-authored-by: Nate Bosch <[email protected]>

* address review comments

* more fix

* keep name consistency

* keep using getWeather to keep align with devsite documentation

* Update the static name

---------

Co-authored-by: Nate Bosch <[email protected]>
* Update SafeRating

* Rename citation source

* add blocked for SafetyRating parse

* Rename DataPart to InlineDataPart

* Update readme

* apply review comment
* Error message for service api not enabled.

* add quota exceed test

* Apply suggestions from code review

Co-authored-by: Nate Bosch <[email protected]>

* Update for review comments

---------

Co-authored-by: Nate Bosch <[email protected]>
* remove vertex_ file name for most of files

* organize import
cynthiajoan and others added 2 commits October 10, 2024 11:21
* fix the optional attributes while parsing SafetyRating

* add doc comments

* update function sample

* comments
Reflow comments and break long strings into adjacent string literals.
@russellwheatley russellwheatley changed the title feat(vertexai): GA launch. [DO NOT MERGE] feat(vertexai)!: GA launch. [DO NOT MERGE] Oct 18, 2024
@cynthiajoan cynthiajoan changed the title feat(vertexai)!: GA launch. [DO NOT MERGE] feat(vertexai)!: Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps. [DO NOT MERGE] Oct 18, 2024
@cynthiajoan cynthiajoan changed the title feat(vertexai)!: Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps. [DO NOT MERGE] feat(vertexai)!: Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps. Oct 18, 2024
@cynthiajoan cynthiajoan merged commit 77b4880 into main Oct 18, 2024
29 of 30 checks passed
@cynthiajoan cynthiajoan deleted the vertexai/prepare_ga branch October 18, 2024 18:20
@firebase firebase locked and limited conversation to collaborators Nov 18, 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.

3 participants