init: gemini base
This commit is contained in:
commit
9923ddb5a8
2 changed files with 16 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
.env
|
||||||
|
.venv/
|
||||||
14
main.py
Normal file
14
main.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
from google import genai
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
import os
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
|
prompt = input("Prompt: ")
|
||||||
|
|
||||||
|
client = genai.Client(api_key=os.getenv("GEM_API_KEY"))
|
||||||
|
response = client.models.generate_content(
|
||||||
|
model="gemini-2.5-flash",
|
||||||
|
contents=prompt
|
||||||
|
)
|
||||||
|
print(response.text)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue