stash save

This commit is contained in:
jhqxxx
2025-12-10 12:57:24 +08:00
parent 515d6da852
commit 3eb983b5bb
4 changed files with 89 additions and 10 deletions
+30 -2
View File
@@ -19,11 +19,39 @@ fn gelab_zero_generate() -> Result<()> {
"content": [
{
"type": "text",
"text": "Hello, GELab-Zero!"
"text": "Hello, GELab-Zero!, 现在几点了"
}
]
}
]
],
"tools": [
{
"type": "function",
"function": {
"name": "get_current_time",
"description": "当你想知道现在的时间时非常有用。",
"parameters": {}
}
},
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "当你想查询指定城市的天气时非常有用。",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "城市或县区,比如北京市、杭州市、余杭区等。"
}
},
"required": ["location"]
}
}
}
],
"tool_choice": null
}
"#;
let mes: ChatCompletionParameters = serde_json::from_str(message)?;