欢迎回来

登录 EAKE AI,继续您的智能之旅

忘记密码?
还没有账号?立即注册

Gemini 3.1 Pro 科学推理能力

2026-05-13 · Google AI
## Gemini 3.1 Pro 科学推理能力 ### 核心特点 - 科学推理得分 94.3%,刷新人类纪录 - 1M tokens 超长上下文 - 原生多模态:文本、图像、视频、音频 - Google 生态深度整合 ### API 调用 ```python import google.generativeai as genai # 配置 API_KEY = "your-api-key" genai.configure(api_key=API_KEY) # 创建模型 model = genai.GenerativeModel("gemini-3.1-pro") # 基础对话 response = model.generate_content("解释量子纠缠") print(response.text) # 多模态输入 import urllib.request urllib.request.urlretrieve("https://example.com/chart.png", "chart.png") model = genai.GenerativeModel("gemini-3.1-pro") with open("chart.png", "rb") as f: image_data = f.read() response = model.generate_content([ "分析这张图表中的趋势", {"mime_type": "image/png", "data": image_data} ]) ``` ### Function Calling ```python model = genai.GenerativeModel( "gemini-3.1-pro", tools=[{"function_declarations": [{ "name": "search_database", "description": "搜索数据库", "parameters": { "type": "object", "properties": { "query": {"type": "string"} } } }]}] ) ``` ### 适用场景 - 科学研究与分析 - 多模态数据处理 - 超长文档理解 - Google Workspace 集成

评论区

该文章暂未开放评论功能。