Git Product home page Git Product logo

Comments (6)

antergone avatar antergone commented on July 4, 2024 3

现象原因: 是因为你第一次发起请求失败了,之后你调整配置重启或重试服务,就会有这种现象。
解决方案:点一下小刷子(Clear),重新发起请求即可。

API要求和机器人有来有回的对话,如果第一次机器人没有回答,你重新发起第二次对话,相当于你说了两句话,机器人不知道该怎么回答。

from geminiprochat.

antergone avatar antergone commented on July 4, 2024 1

这个错误直接导致docker停止运行了,如何能跳过这个,避免docker崩溃

这是另外一个问题,建议重新开issue. 本项目作者 @babaohuang 已经在更新fuyun/generative-ai版本了,实测 0.1.3 版本无此问题。 待主分支更新后,重新构建镜像即可。

from geminiprochat.

JavaLuSir avatar JavaLuSir commented on July 4, 2024

现象原因: 是因为你第一次发起请求失败了,之后你调整配置重启或重试服务,就会有这种现象。 解决方案:点一下小刷子(Clear),重新发起请求即可。

API要求和机器人有来有回的对话,如果第一次机器人没有回答,你重新发起第二次对话,相当于你说了两句话,机器人不知道该怎么回答。

Thanks

from geminiprochat.

ymg2007 avatar ymg2007 commented on July 4, 2024

这个错误直接导致docker停止运行了,如何能跳过这个,避免docker崩溃

from geminiprochat.

JavaLuSir avatar JavaLuSir commented on July 4, 2024

有的回复的中文有乱码

from geminiprochat.

sophynez avatar sophynez commented on July 4, 2024

You actually only need to append the AI'a answer to the messages list as well. as it says in the error, so that the model has the full history of human question and AI response

    messages.append(human_question)
    ai_response = llm(messages)
    messages.append(ai_response)

from geminiprochat.

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.