Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build github.com/nangcr/chatgpt-aws-proxy: cannot find module for path io/fs #2

Open
lzz29 opened this issue Mar 11, 2023 · 2 comments

Comments

@lzz29
Copy link

lzz29 commented Mar 11, 2023

你好
我在自己的服务器上编译完之后 显示这个问题
这个应该怎么处理?
对go不是很熟悉

@nangcr
Copy link
Owner

nangcr commented Mar 11, 2023

命令行执行 go version 或者 go env 看下版本,是不是低于1.16

@lzz29
Copy link
Author

lzz29 commented Mar 12, 2023

命令行执行 go version 或者 go env 看下版本,是不是低于1.16
谢谢
是的,确实版本的问题。
我换了1.19.7

方便下后面的人,我整理下我的步骤:

  1. 拉到文件最下面,开启一行,注释一行
    // 启动 Lambda 函数
    //algnhsa.ListenAndServe(r, nil)

// 启动本地服务,使用时请注释掉上面的 algnhsa.ListenAndServe(r, nil)
r.Run(":12450")
2. 删除
"github.com/akrylysov/algnhsa"
这一行
3. go build
4. go run main.go
5. 注意下服务器的端口 12450 是否开启

这样就行了,能支持SSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants