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

Remove apiVersion and location options #8124

Merged
merged 3 commits into from Apr 4, 2024
Merged

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Apr 4, 2024

These are not intended to be available options for private preview release.

Also removed a test file that seems to just be a placeholder.

Copy link

changeset-bot bot commented Apr 4, 2024

⚠️ No Changeset found

Latest commit: 1aace8a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hsubox76 hsubox76 marked this pull request as ready for review April 4, 2024 18:55
@hsubox76 hsubox76 requested a review from a team as a code owner April 4, 2024 18:55
@hsubox76 hsubox76 requested a review from DellaBitta April 4, 2024 18:55
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 4, 2024

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 4, 2024

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • BlockReason

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.97 kB2.85 kB-118 B (-4.0%)
      size-with-ext-deps20.6 kB20.5 kB-118 B (-0.6%)
    • ChatSession

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size13.3 kB13.1 kB-186 B (-1.4%)
      size-with-ext-deps31.7 kB31.5 kB-186 B (-0.6%)
    • FinishReason

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.97 kB2.85 kB-118 B (-4.0%)
      size-with-ext-deps20.6 kB20.5 kB-118 B (-0.6%)
    • FunctionDeclarationSchemaType

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.99 kB2.87 kB-118 B (-4.0%)
      size-with-ext-deps20.7 kB20.5 kB-118 B (-0.6%)
    • GenerativeModel

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size14.8 kB14.7 kB-186 B (-1.3%)
      size-with-ext-deps33.3 kB33.1 kB-186 B (-0.6%)
    • HarmBlockThreshold

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.97 kB2.86 kB-118 B (-4.0%)
      size-with-ext-deps20.7 kB20.5 kB-118 B (-0.6%)
    • HarmCategory

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.97 kB2.85 kB-118 B (-4.0%)
      size-with-ext-deps20.6 kB20.5 kB-118 B (-0.6%)
    • HarmProbability

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size2.97 kB2.85 kB-118 B (-4.0%)
      size-with-ext-deps20.7 kB20.5 kB-118 B (-0.6%)
    • POSSIBLE_ROLES

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size3.01 kB2.89 kB-118 B (-3.9%)
      size-with-ext-deps20.7 kB20.6 kB-118 B (-0.6%)
    • getGenerativeModel

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size14.9 kB14.7 kB-186 B (-1.2%)
      size-with-ext-deps33.3 kB33.1 kB-186 B (-0.6%)
    • getVertexAI

      Size

      TypeBase (d27cd8e)Merge (84202e3)Diff
      size3.14 kB2.98 kB-162 B (-5.2%)
      size-with-ext-deps28.1 kB28.0 kB-162 B (-0.6%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/wNHryuYBzT.html

app: FirebaseApp = getApp(),
options?: VertexOptions
): Vertex {
export function getVertex(app: FirebaseApp = getApp()): Vertex {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be getVertexAI now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix this in the merge with the other PR.

// getImmediate for FirebaseApp will always succeed
const app = container.getProvider('app').getImmediate();
const appCheckProvider = container.getProvider('app-check-internal');
return new VertexService(app, appCheckProvider, { location });
return new VertexService(app, appCheckProvider);
Copy link
Contributor

Choose a reason for hiding this comment

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

VertexAIService?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix in the merge.

@hsubox76 hsubox76 merged commit bf7d2d8 into ch-vertex-feature Apr 4, 2024
33 of 35 checks passed
@hsubox76 hsubox76 deleted the ch-remove-options branch April 4, 2024 19:45
ryanwilson added a commit that referenced this pull request May 2, 2024
Re-add the apiVersion and location options. Slight modification to the
revert, will not re-add the placeholder test.

This reverts commit bf7d2d8.
@firebase firebase locked and limited conversation to collaborators May 5, 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.

None yet

3 participants