songquanpeng / one-api

OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
https://openai.justsong.cn/
MIT License
16.18k stars 3.74k forks source link

go.mod: checksum mismatch #1388

Open zhuwensi opened 2 months ago

zhuwensi commented 2 months ago
git clone https://github.com/songquanpeng/one-api.git
cd one-api
go mod download

Error:

# go mod download
verifying github.com/bytedance/sonic/loader@v0.1.0/go.mod: checksum mismatch
        downloaded: h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
        go.sum:     h1:UmRT+IRTGKz/DAkzcEGzyVqQFJ7H9BqwBO3pm9H/+HY=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

That project has one issue regarding this error, however, the topis is closed, but the problem is still open.

zhuwensi commented 2 months ago

https://github.com/bytedance/sonic/issues/622

felix021 commented 2 months ago

Update to the latest version of sonic should solve this:

go get github.com/bytedance/sonic@latest