Skip to content

LindaLawton/ai-studio-gemini-python-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-studio-gemini-python-samples

My Name is Linda Lawton I am a AI/ML GDE. I have been working with AI studio Gemini since 2023 when it was called bard or Palm api.

I am slowing adding all of my samples here.

Library

This sample code uses the Python SDK to connect to AI studio gemini or gemini api.

These samples are not intended to work with Vertex AI version of gemini.

Support

I am here to help with these samples but if you need general help with Gemini there are sevral places you can go.

.env

This file needs to contain your settings

Your api key from AI studio

API_KEY=[Redacted]

Any model that supports Audio, images, videos, and text

Model List input must contain Audio, images, videos, and text.

MODEL_NAME=gemini-1.5-flash-latest

any model that supports embeddings

EMBEDDING_MODEL_NAME=models/embedding-001

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages