docker 里 oneapi 启动失败:failed to get gpt-3.5-turbo token encoder

报错信息

failed to get gpt-3.5-turbo token encoder: Get “https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken”: tls: failed to verify certificate: x509: certificate is not authorized to sign other certificates

翻译

无法获取 gpt-3.5-turbo 令牌编码器:获取“https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken”:tls:无法验证证书:x509:证书无权签署其他证书

解决方法

  1. 下载文件:https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken
  2. 将文件复制一份分别改名为 9b5ad71b2ce5302211f9c61530b329a4922fc6a4、fb374d419588a4632f3f557e76b4b70aebbca790
  3. 将这两个文件放在 FastGPT/oneapi/cache 位置
  4. 设置容器环境变量:在 docker-compose.yml 文件如图位置添加 TIKTOKEN_CACHE_DIR=/data/cache
    确保下面的路径是这样 volumes: - ./oneapi:/data
  5. 重启docker

相关链接

https://github.com/songquanpeng/one-api/issues/906

Logo

一站式 AI 云服务平台

更多推荐