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

Unable to deploy firestore-multimodal-genai #605

Open
rcourtna opened this issue Dec 9, 2024 · 0 comments
Open

Unable to deploy firestore-multimodal-genai #605

rcourtna opened this issue Dec 9, 2024 · 0 comments

Comments

@rcourtna
Copy link

rcourtna commented Dec 9, 2024

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
    Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: firestore-multimodal-genai
  • Extension version: 1.0.1
  • Configuration values (redact info where appropriate):
    • CANDIDATE_COUNT=1
    • CANDIDATES_FIELD=candidates
    • COLLECTION_NAME=gemini_multimodal_genai_tasks
    • GENERATIVE_AI_PROVIDER=vertex-ai
    • HARM_CATEGORY_DANGEROUS_CONTENT=HARM_BLOCK_THRESHOLD_UNSPECIFIED
    • HARM_CATEGORY_HARASSMENT=HARM_BLOCK_THRESHOLD_UNSPECIFIED
    • HARM_CATEGORY_HATE_SPEECH=HARM_BLOCK_THRESHOLD_UNSPECIFIED
    • HARM_CATEGORY_SEXUALLY_EXPLICIT=HARM_BLOCK_THRESHOLD_UNSPECIFIED
    • IMAGE_FIELD=image_file
    • LOCATION=us-central1
    • MODEL=gemini-1.5-pro-002
    • PROMPT={{ prompt }}
    • RESPONSE_FIELD=output

[REQUIRED] Step 3: Describe the problem

I'm playing with the gemini-multimodal-genai Firebase extension. Have it all working when setting up manually in the web interface. Now I'm trying to use the firebase cli to deploy the configuration:

firebase deploy --only extensions

This always fails with the error:

Error: Some services used by this extension have not been set up on your Firebase project. To ensure this extension works as intended, you must enable these services by following the provided links, then retry this command

* Firebase Storage: store and retrieve user-generated files like images, audio, and video without server-side code.

I do have Storage already enabled, and I successfully deploy Storage, Firestore, Functions with 'firebase deploy' regularly. Extensions terms of service have been accepted.

Steps to reproduce:

What happened? How can we make the problem occur?

% firebase deploy --only extensions --project=***

=== Deploying to '***'...

i  deploying extensions
i  extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
✔  extensions: required API firebaseextensions.googleapis.com is enabled
i  extensions: ensuring required API secretmanager.googleapis.com is enabled...
✔  extensions: required API secretmanager.googleapis.com is enabled
i  extensions: ensuring required API compute.googleapis.com is enabled...
✔  extensions: required API compute.googleapis.com is enabled
The following extension instances will be created:
	firestore-multimodal-genai (googlecloud/[email protected])

i  extensions: By installing an extension instance onto a Firebase project, you accept the Firebase Extensions User Terms of Service: https://firebase.google.com/terms/extensions/user
? Do you accept the Firebase Extensions User Terms of Service? Yes

Error: Some services used by this extension have not been set up on your Firebase project. To ensure this extension works as intended, you must enable these services by following the provided links, then retry this command

    * Firebase Storage: store and retrieve user-generated files like images, audio, and video without server-side code.
      https://console.firebase.google.com/project/***/storage
Expected result

Deploys extension

Actual result

Error about Storage service, which is set up and in use.

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

No branches or pull requests

1 participant