Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 1.41 KB

README.md

File metadata and controls

43 lines (23 loc) · 1.41 KB

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