Giter VIP home page Giter VIP logo

Comments (3)

oishi81 avatar oishi81 commented on July 3, 2024

我感觉是因为问的问题里没有加“?”
问题带标点问完整了就不会回复时带“?”

另外,有的时候问的问题,反馈是error时(如下),机器人没有响应,似乎可以优化下,做个回复,这样使人明白发生了什么。
time="2023-02-08T05:29:42Z" level=info msg="{\n "error": {\n "message": "This model's maximum context length is 4097 tokens, however you requested 4451 tokens (451 in your prompt; 4000 for the completion). Please reduce your prompt; or completion length.",\n "type": "invalid_request_error",\n "param": null,\n "code": null\n }\n}\n"

from wechatgpt.

wllmww12 avatar wllmww12 commented on July 3, 2024

返回后的数据编码问题

from wechatgpt.

houko avatar houko commented on July 3, 2024

我感觉是因为问的问题里没有加“?” 问题带标点问完整了就不会回复时带“?”

另外,有的时候问的问题,反馈是error时(如下),机器人没有响应,似乎可以优化下,做个回复,这样使人明白发生了什么。 time="2023-02-08T05:29:42Z" level=info msg="{\n "error": {\n "message": "This model's maximum context length is 4097 tokens, however you requested 4451 tokens (451 in your prompt; 4000 for the completion). Please reduce your prompt; or completion length.",\n "type": "invalid_request_error",\n "param": null,\n "code": null\n }\n}\n"

openai有最大返回量的限制,chat.openai.chat的也有最大限制,但是你回复继续的话他就会继续再发。我现在没有加上下文的功能,所以报错就没有回复了。 带问号是因为你给他提的问题没加问号,自动给你补全了,有点多此一举了

from wechatgpt.

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.