push gitignore
This commit is contained in:
10
get_token.py
Normal file
10
get_token.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from google import genai
|
||||
|
||||
client = genai.Client(
|
||||
vertexai=True, project='aida-461108', location='us-central1'
|
||||
)
|
||||
|
||||
response = client.models.generate_content(
|
||||
model="gemini-2.0-flash", contents="三句话总结人工智能在当代的作用"
|
||||
)
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user