npm config edit打开配置文件,添加镜像:
1 | electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/ |
npm config edit打开配置文件,添加镜像:
1 | electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/ |
每次 LLM API 的调用实际上都是一次 HTTP request,发送的 json 数据包含了 API token,LLM 调用参数设置,消息上下文(messages)等。而 LLM 的 response 也是 json 数据,内容包括 token 用量(usage),模型输出的消息(choices/message)等。
那么 LLM 是如何调用本地 tools 的呢?