fanweixiao / llm-function-calling-framework

LLM function calling framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yomo-function-calling

Download chatglm model

curl -o chatglm3-ggml.bin "https://www.modelscope.cn/api/v1/models/tiansz/chatglm3-6b-ggml/repo?Revision=master&FilePath=chatglm3-ggml.bin"

Install python libs

sudo apt install python3-virtualenv
virtualenv venv
source venv/bin/activate

pip install chatglm_cpp fastapi pydantic uvicorn

Compile YoMo Source

go build -o source_exec ./source

Start python server

python fc_server.py

Start YoMo Zipper

yomo serve -c zipper-config.yaml

Start application SFN

cd sfn-random-number
go run main.go

cd sfn-get-weather
go run main.go

Start sink SFN

cd sfn-sink
go run main.go

Chat as YoMo Source

curl -H "Content-type: application/json" -d '{"prompt":"北京的天气怎么样?"}' http://localhost:2880

About

LLM function calling framework


Languages

Language:Python 50.7%Language:Go 49.3%