Giter Site home page Giter Site logo

Comments (4)

linweiyuan avatar linweiyuan commented on August 19, 2024

支持的

使用方法和其他的代理没有什么大的差别,改下 URL 配置即可

from go-chatgpt-api.

weew2 avatar weew2 commented on August 19, 2024

您好,我直接使用 go install github.com/linweiyuan/go-chatgpt-api@latest 这种方式在服务器生成可运行文件

然后通过 nohup ./go-chatgpt-api & 启动之后,出现了以下错误

[GIN-debug] Listening and serving HTTP on :8080
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x138 pc=0x7a362b]

goroutine 8 [running]:
github.com/linweiyuan/go-chatgpt-api/webdriver.Refresh.func1()
/usr/local/go_project/pkg/mod/github.com/linweiyuan/[email protected]/webdriver/refresh.go:13 +0x2b
created by github.com/linweiyuan/go-chatgpt-api/webdriver.Refresh
/usr/local/go_project/pkg/mod/github.com/linweiyuan/[email protected]/webdriver/refresh.go:12 +0x6a

请问下,这种错误的原因是什么?

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on August 19, 2024

本地需要后台跑 chromedriver,如果不设置环境变量 CHATGPT_PROXY_SERVER,则默认使用 apiKey 模式

其实你可以看下 README 或者里面博客的视频


问个题外话,为何不用 dockercompose

from go-chatgpt-api.

weew2 avatar weew2 commented on August 19, 2024

本地需要后台跑 chromedriver,如果不设置环境变量 CHATGPT_PROXY_SERVER,则默认使用 apiKey 模式

其实你可以看下 README 或者里面博客的视频

问个题外话,为何不用 dockercompose

好的,谢谢了。

不太喜欢用docker的方式,觉得比较废资源

from go-chatgpt-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.