以 JSON 格式显示股票价格表
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
从股票数据表生成关键信息并以 JSON 格式返回
在对 Cloud 控制台使用不同参数值时,或通过直接调用 Vertex AI API,您可以直接查询模型,并测试返回的结果。
|
上下文:|日期 |开盘价 |收盘价格 |
|------------|------------|-------------|
| 2024 年 1 月 4 日 | 19.97 | 19.05 | 2024 年 1 月 5 日 | 19.08 | 19.54 | 2024 年 1 月 6 日 | 19.60 | 20.51 | 2024 年 1 月 7 日 | 20.69 | 20.56 | 2024 年 1 月 8 日 | 20.61 | 20.05 |
查询:将数据、开盘价和收盘价格提取到 JSON 数组中,每天一个条目。还要在 JSON 数组的最后部分输出“highest_close_price_date”和“lowest_close_price_date”。
响应
[
{
"date": "2024-01-04",
"open_price": 19.97,
"close_price": 19.05
},
{
"date": "2024-01-05",
"open_price": 19.08,
"close_price": 19.54
},
{
"date": "2024-01-06",
"open_price": 19.60,
"close_price": 20.51
},
{
"date": "2024-01-07",
"open_price": 20.69,
"close_price": 20.56
},
{
"date": "2024-01-08",
"open_price": 20.61,
"close_price": 20.05
},
{
"highest_close_price_date": "2024-01-07",
"lowest_close_price_date": "2024-01-04"
}
]
|
型号: |
gemini-1.5-flash-preview-0514 |
温度: |
1 |
输出令牌数量上限: |
8192 |
TopK: |
40 |
TopP: |
0.95 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-27。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]