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

Google Model Not Working #1709

Closed
mikechn opened this issue Jan 2, 2025 · 2 comments
Closed

Google Model Not Working #1709

mikechn opened this issue Jan 2, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mikechn
Copy link

mikechn commented Jan 2, 2025

I got this error and looks like we need to pass the API_KEY in the URL directly.
(Example from Google:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=GEMINI_API_KEY"
-H 'Content-Type: application/json'
-X POST
-d '{
"contents": [{
"parts":[{"text": "Explain how AI works"}]
}]
}'
)

image

@mikechn mikechn added the bug Something isn't working label Jan 2, 2025
Copy link
Contributor

github-actions bot commented Jan 2, 2025

Hello @mikechn! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@mikechn
Copy link
Author

mikechn commented Jan 3, 2025

My bad, I put the API Key in defaultCharacter.ts but not in .env. Works fine now.

@mikechn mikechn closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant