Coder Social home page Coder Social logo

Comments (9)

Issues-translate-bot avatar Issues-translate-bot commented on August 27, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: Regarding the answer to changing the model in the same session, after refreshing the page, it changes to the original model.

In the same session, for example, I use gpt3.5 for the first conversation, and switch to gpt4 to continue the conversation. However, if I refresh the page or reopen the website, the session model will be switched to the one used for the first conversation. model instead of the model used when the conversation was last held. I don’t know if the original logical design of the project is like this or if it is a BUG

from chatnio.

AnnaStreeter avatar AnnaStreeter commented on August 27, 2024

看代码逻辑,每个对话会存储一个 model 字段,首次提问创建一条conversation, 视为主模型,后续切换模型则切换为附模型。
后续请求时将返回主模型并切换至主模型。

from chatnio.

Issues-translate-bot avatar Issues-translate-bot commented on August 27, 2024

Bot detected the issue body's language is not English, translate it automatically.


Looking at the code logic, each conversation will store a model field. The first question creates a conversation, which is regarded as the main model. Subsequent switching models will switch to the attached model.
Subsequent requests will return and switch to the main model.

from chatnio.

dqzboy avatar dqzboy commented on August 27, 2024

看代码逻辑,每个对话会存储一个 model 字段,首次提问创建一条conversation, 视为主模型,后续切换模型则切换为附模型。 后续请求时将返回主模型并切换至主模型。

好的明白了,但是这导致个问题,就是刷新页面或者重新打开页面点击此会话时,加载很耗时

from chatnio.

Issues-translate-bot avatar Issues-translate-bot commented on August 27, 2024

Bot detected the issue body's language is not English, translate it automatically.


Looking at the code logic, each conversation will store a model field. The first question creates a conversation and is regarded as the main model. Subsequent switching of models will switch to the attached model. Subsequent requests will return and switch to the main model.

Okay, I understand, but this leads to a problem, that is, when refreshing the page or reopening the page and clicking on this session, it takes a long time to load.

from chatnio.

AnnaStreeter avatar AnnaStreeter commented on August 27, 2024

看代码逻辑,每个对话会存储一个 model 字段,首次提问创建一条conversation, 视为主模型,后续切换模型则切换为附模型。 后续请求时将返回主模型并切换至主模型。

好的明白了,但是这导致个问题,就是刷新页面或者重新打开页面点击此会话时,加载很耗时

和这个有啥关系,这是SQL查询导致的吧,而且也没有多耗时(除非 MySQL 离后端远,配置低,内容多带宽低,或者服务器线路差等因素,正常来说<=5s)

from chatnio.

Issues-translate-bot avatar Issues-translate-bot commented on August 27, 2024

Bot detected the issue body's language is not English, translate it automatically.


Looking at the code logic, each conversation will store a model field. The first question creates a conversation, which is regarded as the main model. Subsequent switching models will switch to the attached model. Subsequent requests will return and switch to the main model.

Okay, I understand, but this leads to a problem, that is, when refreshing the page or reopening the page and clicking on this session, it takes a long time to load.

What does this have to do with it? It’s caused by SQL queries, and it doesn’t take much time.

from chatnio.

AnnaStreeter avatar AnnaStreeter commented on August 27, 2024

我是用内网 Nas+K8s搭的,目测延时几乎没影响,在200ms以内

image

from chatnio.

Issues-translate-bot avatar Issues-translate-bot commented on August 27, 2024

Bot detected the issue body's language is not English, translate it automatically.


I used intranet Nas + K8s, and the visual delay has almost no effect, within 200ms.

from chatnio.

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.