Skip to content

working .env (f/b) configuration for gemini models. #942

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

Open
DunaSpice opened this issue Dec 14, 2024 · 5 comments
Open

working .env (f/b) configuration for gemini models. #942

DunaSpice opened this issue Dec 14, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@DunaSpice
Copy link

Please share working .env for front and back for gemini flash or pro models. thanks in advance. I get these for now)

"""
google.auth.exceptions.GoogleAuthError: Unable to find your project. Please provide a project ID by:

@kartikpersistent kartikpersistent added the question Further information is requested label Dec 16, 2024
@kartikpersistent
Copy link
Collaborator

kartikpersistent commented Dec 17, 2024

Hi @DunaSpice
Frontend ENV
There is no special env required from frontend to access Gemini models

VITE_BACKEND_API_URL=""
VITE_BLOOM_URL="https://workspace-preview.neo4j.io/workspace/explore?connectURL={CONNECT_URL}&search=Show+me+a+graph&featureGenAISuggestions=true&featureGenAISuggestionsInternal=true"
VITE_REACT_APP_SOURCES=""
VITE_LLM_MODELS_PROD=""
VITE_ENV="PROD"
VITE_TIME_PER_PAGE=50
VITE_CHUNK_SIZE=5242880
VITE_LARGE_FILE_SIZE=5242880
VITE_CHAT_MODES=""
VITE_BATCH_SIZE=2
VITE_LLM_MODELS=""
DEPLOYMENT_ENV="local"

Backend ENV will be shared by @aashipandya

@dhermanns
Copy link

@aashipandya : Could you provide the backend part?

@kaustubh-darekar
Copy link
Collaborator

Backend .env
LLM_MODEL_CONFIG_gemini_1.5_pro="gemini-1.5-pro-002"
LLM_MODEL_CONFIG_gemini_1.5_flash="gemini-1.5-flash-002"
LLM_MODEL_CONFIG_gemini_2.0_flash="gemini-2.0-flash-001"
LLM_MODEL_CONFIG_gemini_2.5_pro="gemini-2.5-pro-exp-03-25"
GEMINI_ENABLED ="true"

you can run this command to authenticate your google project ID

gcloud application auth login

(refer https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login)

@kartikpersistent
Copy link
Collaborator

Hi @dhermanns please test and let us know

@dhermanns
Copy link

I will - takes some time to achieve the preconditions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants