11 lines
270 B
Python
11 lines
270 B
Python
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)
|