Open LiuGuBiGu opened 11 months ago
但是使用cli运行看起来又可以正常使用
Welcome to ChatGLM.cpp! Ask whatever you want. Type 'clear' to clear context. Type 'stop' to exit.
System > Answer the following questions as best as you can. You have access to the following tools:
{
"random_number_generator": {
"name": "random_number_generator",
"description": "Generates a random number x, s.t. range[0] <= x < range[1]",
"params": [
{
"name": "seed",
"description": "The random seed used by the generator",
"type": "int",
"required": true
},
{
"name": "range",
"description": "The range of the generated numbers",
"type": "tuple[int, int]",
"required": true
}
]
},
"get_weather": {
"name": "get_weather",
"description": "Get the current weather for `city_name`",
"params": [
{
"name": "city_name",
"description": "The name of the city to be queried",
"type": "str",
"required": true
}
]
}
}
Prompt > 帮我查询北京的天气如何
ChatGLM3 > get_weather
```python
tool_call(city_name='北京')
Function Call > Please manually call function get_weather
and provide the results below.
Observation > 温度 5度,天气晴,湿度 50
ChatGLM3 >
北京的天气查询结果如下:当前气温为5度,天气晴朗,湿度为50%。
我也遇到了这个问题,请问有什么新的进展吗?
预期:
实际:
补充:使用同样的请求参数访问非量化chatglm3-6B,可以正确返回相关信息