easychen / openai-gpt-dev-notes-for-cn-developer Goto Github PK
View Code? Open in Web Editor NEW如何快速开发一个OpenAI/GPT应用:国内开发者笔记
如何快速开发一个OpenAI/GPT应用:国内开发者笔记
Token计算和限制问题:如果使用者用自己的Key,为了提升体验,我们可以提供一个Token计算,让用户知道自己的会花多少钱。另外如果你没有用第三方那个库来分拆,那么一次请求的内容不要超过 max_tokens 的限制。这个值一般是 4096。
——
意思是chatgpt-api这个库可以把很长的内容拆分很多个请求?然后再组装回复的数据返回吗?
API都调试好,内置自己的 OPEN - KEY 给用户使用?然后通过用户充值收回成本么?如果不能这样,我们开发产品用户又没有自己的KEY,产品开发出来也不能用。
api2d用了一段时间了,急需function call啊。
用esp32联网去接人chatgpt api,问题简单是可以回复,当问题复杂时,回复过长会导致null,有什么解决办法吗
在前端判断字符长度,只能用累计的方法,中文字符就会不准确,然后就需要在后端统计content的总的token数吧,如果超出了的话,如何进行content的取舍呢,比如只留下第一问题和最后一个答案,如果这两个加一起也超过了input token的限制,应该如何取舍,有没有好的方案,或者作者是用的什么方案,学习一下
或者有无稳定可靠的第三方接口
腾讯函数 硅谷和新加坡都试了,还是Your access was terminated due to violation of our policies,是不是不止封ip,还会关联user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.