Code Monkey home page Code Monkey logo

openai-gpt-dev-notes-for-cn-developer's Issues

不懂“没有用第三方那个库来分拆”是什么意思

Token计算和限制问题:如果使用者用自己的Key,为了提升体验,我们可以提供一个Token计算,让用户知道自己的会花多少钱。另外如果你没有用第三方那个库来分拆,那么一次请求的内容不要超过 max_tokens 的限制。这个值一般是 4096。

——
意思是chatgpt-api这个库可以把很长的内容拆分很多个请求?然后再组装回复的数据返回吗?

咨询

API都调试好,内置自己的 OPEN - KEY 给用户使用?然后通过用户充值收回成本么?如果不能这样,我们开发产品用户又没有自己的KEY,产品开发出来也不能用。

请教关于携带上下文,token限制的方案

在前端判断字符长度,只能用累计的方法,中文字符就会不准确,然后就需要在后端统计content的总的token数吧,如果超出了的话,如何进行content的取舍呢,比如只留下第一问题和最后一个答案,如果这两个加一起也超过了input token的限制,应该如何取舍,有没有好的方案,或者作者是用的什么方案,学习一下

不能访问api

腾讯函数 硅谷和新加坡都试了,还是Your access was terminated due to violation of our policies,是不是不止封ip,还会关联user

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.