Gemini 3.7 Flash (gemini-3.7-flash) เป็นโมเดล Flash รุ่นก่อนหน้าในซีรีส์ Gemini 3 ซึ่งตอนนี้เลิกใช้งานแล้วและระบบจะเปลี่ยนเส้นทางไปยัง Gemini 3.8 Flash โดยอัตโนมัติ
เราจะเก็บคู่มือนี้ไว้เพื่อใช้อ้างอิงและบันทึกความสามารถและการเปลี่ยนแปลงที่เปิดตัวใน Gemini 3.7 Flash
ภาพรวมรูปแบบ
| รุ่น | รหัสโมเดล | ระดับการคิดเริ่มต้น | คำอธิบาย |
|---|---|---|---|
| Gemini 3.7 Flash (เลิกใช้งานแล้ว) | gemini-3.7-flash |
medium |
โมเดล Flash รุ่นก่อนหน้าที่สร้างขึ้นสำหรับการเขียนโค้ด เวิร์กโฟลว์แบบ Agent และการดำเนินการแบบหลายขั้นตอน แทนที่โดย Gemini 3.8 Flash |
Gemini 3.7 Flash รองรับหน้าต่างบริบทขนาด 1 ล้านโทเค็น, โทเค็นเอาต์พุตสูงสุด 64, 000 โทเค็น, ระดับการคิดที่ปรับได้ (low, medium, high) และชุดเครื่องมือในตัวชุดเดียวกันกับ 3.6 Flash
ดูรายละเอียดทั้งหมดได้ที่หน้าโมเดล Gemini 3.7 Flash
คู่มือเริ่มใช้งานฉบับย่อ
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.7-flash",
input="Write a responsive navigation component in React with smooth animations and dark mode toggle."
)
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
model: "gemini-3.7-flash",
input: "Write a responsive navigation component in React with smooth animations and dark mode toggle.",
});
console.log(interaction.output_text);
Java
import com.google.genai.Client;
import com.google.genai.gaos.models.interactions.CreateModelInteraction;
import com.google.genai.gaos.models.interactions.Interaction;
import com.google.genai.gaos.models.interactions.InteractionsInput;
import com.google.genai.gaos.models.interactions.Model;
import com.google.genai.gaos.models.operations.CreateInteractionRequestBody;
Client client = new Client();
CreateModelInteraction req = CreateModelInteraction.builder()
.model(Model.of("gemini-3.7-flash"))
.input(InteractionsInput.of("Write a responsive navigation component in React with smooth animations and dark mode toggle."))
.build();
Interaction interaction =
client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get();
System.out.println(interaction.outputText().orElse(""));
REST
curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"model": "gemini-3.7-flash",
"input": "Write a responsive navigation component in React with smooth animations and dark mode toggle."
}'
มีอะไรใหม่ใน Gemini 3.7 Flash
- การเขียนโค้ดและงานที่ต้องใช้ Agent: คุณภาพสูงขึ้นอย่างมากในการเปรียบเทียบวิศวกรรมซอฟต์แวร์และ Agentic ในโลกแห่งความเป็นจริง ซึ่งช่วยปรับปรุงการแก้ปัญหาและลดลูปของ Agent ที่ล้มเหลว
- การพัฒนาเว็บและความเท่าเทียมกันของการออกแบบที่ดียิ่งขึ้น: สร้างโค้ดแอปพลิเคชันบนเดสก์ท็อปและเว็บที่มีความเที่ยงตรงสูงขึ้นได้โดยตรงจากโมเดลการออกแบบ พร้อมทั้งเพิ่มการยึดมั่นในการออกแบบและการตรวจสอบฐานโค้ดที่มีอยู่เทียบกับโมเดลเพื่อยืนยันความเท่าเทียมกันของการออกแบบแบบ 1:1
ทำความเข้าใจระดับการให้เหตุผล
Gemini 3.7 Flash ช่วยให้นักพัฒนาแอปควบคุมเวลาในการตอบสนองและความชาญฉลาดได้อย่างยืดหยุ่นโดยการปรับระดับการคิดของโมเดล ดังนี้
- การประมวลผลความคิดน้อย: ลดเวลาในการตอบสำหรับงานที่สำคัญต่อเวลาในการตอบสนอง เช่น ไปป์ไลน์การตอบสนองต่อเหตุการณ์ แชทแบบเรียลไทม์ การเขียนฉบับร่าง และการวิเคราะห์ข้อมูลอย่างรวดเร็ว
- ปานกลาง (ค่าเริ่มต้น): คุณภาพดีที่สุดสำหรับงานส่วนใหญ่ แนะนำสำหรับกรณีการใช้งานโค้ดและ Agent ที่ซับซ้อน โดยมีความแม่นยำในการตอบครั้งแรกสูงขึ้น
- การประมวลผลความคิดสูง: เพิ่มความสามารถของโมเดลในการคิดและใช้เครื่องมือให้สูงสุด ดีที่สุดสำหรับการให้เหตุผลที่ซับซ้อน คณิตศาสตร์ที่ยาก และการเขียนโค้ดและงานของเอเจนต์ที่ยาก อนุญาตให้ใช้ความคิดและฟังก์ชันการเรียกที่ยาวขึ้น โดยจะใช้โทเค็นและมีค่าใช้จ่ายสูงขึ้น
วิธีกำหนดค่าระดับการคิดใน Gemini 3.7 Flash
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.7-flash",
input="Analyze this payment processing pipeline for race conditions during retry attempts and rewrite the transaction locks safely.",
generation_config={
"thinking_level": "medium" # Balanced reasoning effort for complex tasks
}
)
print(interaction.output_text)
ดูตัวอย่างโค้ดหลายภาษา (JavaScript, Java, Go, REST) และแนวคิดการให้เหตุผลเชิงลึกได้ที่ทำความเข้าใจระดับการให้เหตุผลใน Gemini 3.8 Flash
การสนับสนุน Agent ของ Antigravity
Gemini 3.7 Flash ได้เปิดตัวการรองรับการขับเคลื่อนAgent ของ Antigravity ใน Agent ที่ได้รับการจัดการของ Gemini และ Google Antigravity SDK
ดูตัวอย่างโค้ดปัจจุบันและการกำหนดค่าเอเจนต์เริ่มต้นล่าสุดได้ที่คู่มือเอเจนต์ Antigravity และคู่มือ Gemini 3.8 Flash
รุ่นอื่นๆ
ขั้นตอนถัดไป
- ดูข้อกำหนดของ API ได้ที่ภาพรวมของโมเดล
- สำรวจการประสานงานแบบหลายเอเจนต์ในคู่มือ Interactions API
- ทดสอบและปรับแต่งพรอมต์ใน Google AI Studio