Giter Site home page Giter Site logo

Comments (20)

yifangyujason avatar yifangyujason commented on July 19, 2024 2

这个 logging 参数我还从来没用过,不确定可不可以,可以试一下

有效的,到500m后会清空日志重新记录

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024 1

一个即可,什么配置都不变

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

参考 #49

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

不同的accessToken加不同的锁可以吗?

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

不确定

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

我这边启动了两个go-chatgpt-api,但都是对应同一个chatgpt-proxy-server,用不同的accessToken同时发起提问是能够成功的,请问这是什么原因,有没有更好的实现方式
(我的chatgpt-web服务改造了下,根据ip调用不同的go-chatgpt-api服务且使用不同的accessToken)

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

正常行为

api 加锁,proxy 并不加

如果 api_1 中聊天数据正在返回,此时 api_2 刚好触发浏览器(proxy)刷新,那么 api_1 就会莫名断开回复

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

api_1和api_2对于proxy中的浏览器而言是浏览器中不同的页签吗?可以设置为只刷新对应的页签吗?这样就不会受影响了吧?

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

好像你对,我搞混了,两个 api 互不影响

但是,这样做又能用来干什么呢?

我不是杠,是疑问

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

chatgpt-web项目我已经实现了使用多个accessToken聊天且互不影响(我根据ip分流),当初这样做是为了可以分享给身边的家人朋友使用,且同一时间发起提问时不会报错。目前我只有两个gpt账号,即两个accessToken。按照目前的代理逻辑,若后面我能借到其他gpt账号,那就要多启动一个go-chatgpt-api服务了,所以希望能解决这方便的问题。

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

目前为止没有找到好办法,一一绑定是迫于无奈,这个不知何年何月能解决

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

那这个问题好解决吗?

正常行为

api 加锁,proxy 并不加

如果 api_1 中聊天数据正在返回,此时 api_2 刚好触发浏览器(proxy)刷新,那么 api_1 就会莫名断开回复

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

目前为止没有找到好办法,一一绑定是迫于无奈,这个不知何年何月能解决

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

目前简单测试过支持了,可以试一下有无其他 bug

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

感谢大佬,我马上试。顺便问问,我还需要启动了两个go-chatgpt-api吗?

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

很棒,目前没有什么问题

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

chatgpt-proxy-server一夜之间产生大量的日志,塞满了空间,不知道什么原因
image
image
image

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

加个环境变量 LOG_LEVEL=OFFchatgpt-proxy-server 上重启

其实挺矛盾的,日志少了不好排查,多了占空间

from go-chatgpt-api.

yifangyujason avatar yifangyujason commented on July 19, 2024

嗯嗯,我这样加也可以吧?
image

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

这个 logging 参数我还从来没用过,不确定可不可以,可以试一下

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.