curl -o chatglm3-ggml.bin "https://www.modelscope.cn/api/v1/models/tiansz/chatglm3-6b-ggml/repo?Revision=master&FilePath=chatglm3-ggml.bin"
Or
export AZURE_OPENAI_ENDPOINT=https://c3y.openai.azure.com/
export AZURE_OPENAI_KEY=******
sudo apt install python3-virtualenv
virtualenv venv
source venv/bin/activate
pip install chatglm_cpp fastapi pydantic uvicorn openai
go build -o source_exec ./source
python fc_server.py
yomo serve -c zipper-config.yaml
cd sfn-get-weather
go run main.go
cd sfn-sink
go run main.go
curl -H "Content-type: application/json" -d '{"prompt":"北京的天气怎么样?"}' http://localhost:2880
# {"msg":"ok","tag":50,"payload":"{\"city_name\": \"\\u5317\\u4eac\"}"}
curl -H "Content-type: application/json" -d '{"prompt":"你叫什么名字?"}' http://localhost:2880
# {"msg":"error: This prompt cannot be recognized as a function"}