stash save
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user