We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ea35f4 commit deb7a5eCopy full SHA for deb7a5e
genai/text_generation/txt_gen.py
@@ -0,0 +1,13 @@
1
+from google import genai
2
+
3
+client = genai.Client(http_options={'api_version': 'v1'})
4
+response = client.models.generate_content(
5
+ model="gemini-2.0-flash-001",
6
+ contents="How does AI work?"
7
+)
8
+print(response.text)
9
+# Example response:
10
+# Okay, let's break down how AI works. It's a broad field, so I'll focus on the ...
11
+#
12
+# Here's a simplified overview:
13
+# ...
0 commit comments