Git Product home page Git Product logo

Comments (4)

QAbot-zh avatar QAbot-zh commented on June 11, 2024 1

补充:除了回答被截断外,新模型的计费也有问题(可能是因为token计算器的不同,minimax 比 gpt 省 token,导致返回响应中的 total_token 小于 gpt3.5 tiktoken 算出来的 prompt_token 导致的)

image

from one-api.

songquanpeng avatar songquanpeng commented on June 11, 2024

有点搞,补全是根据total反算出来的,这下有点麻烦

from one-api.

lem0ke avatar lem0ke commented on June 11, 2024

有点搞,补全是根据total反算出来的,这下有点麻烦

minimax人员回复可以根据respond返回信息确认token字符数,不知道这个信息是否对你有帮助

from one-api.

QAbot-zh avatar QAbot-zh commented on June 11, 2024

看了下 minimax 输入输出价格一致,所以至少消耗日志上不会出统计差错。如果想避免出现复数token,也可以统计提示和补全的字符数比例然后根据 total 算出一个值来,这样比较兼顾。

from one-api.

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.