Giter Club home page Giter Club logo

Comments (13)

ckt1031 avatar ckt1031 commented on May 23, 2024 1

https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明

這是官方那邊的計算方法, 我們這邊無法直接複製
看看我的想法, 如果要強行計算模型的費用, 那麼要有圖片的原圖, 本地分析解像度, 但這樣會佔用大量服務器帶寬和網絡流量

from one-api.

ckt1031 avatar ckt1031 commented on May 23, 2024

@ye4293 你可以自己提出計費的想法

from one-api.

ye4293 avatar ye4293 commented on May 23, 2024

from one-api.

ckt1031 avatar ckt1031 commented on May 23, 2024

???

ckt1031 @.***> 于2023年12月2日周六 13:39写道:

@ye4293 https://github.com/ye4293 你可以自己提出計費的想法


Reply to this email directly, view it on GitHub
#762 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAVUTO3N6XCMAXY5P3NGMATYHK5HRAVCNFSM6AAAAABAANFBICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGA2DSOJXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

你就這樣擺出問題, 啥也沒有, issue rules也沒有遵守, 你覺得誰會協助你?

from one-api.

ye4293 avatar ye4293 commented on May 23, 2024

我的问题,没有细致填写规则

from one-api.

popdo avatar popdo commented on May 23, 2024

https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明

from one-api.

popdo avatar popdo commented on May 23, 2024

https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明

這是官方那邊的計算方法, 我們這邊無法直接複製 看看我的想法, 如果要強行計算模型的費用, 那麼要有圖片的原圖, 本地分析解像度, 但這樣會佔用大量服務器帶寬和網絡流量

还有一个方案。无论是上传的图片还是发送的网络图片地址,我们自己计算好将尺寸传递给oneapi计算即可。oneapi每次只需要接收一个额外的size数组参数。oneapi根据这个size计算费用。

from one-api.

ckt1031 avatar ckt1031 commented on May 23, 2024

自己计算好

用户可以操纵和改变大小,以绕过计算成本

from one-api.

songquanpeng avatar songquanpeng commented on May 23, 2024

是的,这个计费确实比较麻烦,目前还没有什么好的想法

from one-api.

lijie97 avatar lijie97 commented on May 23, 2024

你怎样可以用gpt-4-vision-preview呢, 我直接报错

json: cannot unmarshal object into Go struct field Message.messages.content of type string

from one-api.

ckt1031 avatar ckt1031 commented on May 23, 2024

你怎样可以用gpt-4-vision-preview呢, 我直接报错

json: cannot unmarshal object into Go struct field Message.messages.content of type string

你沒更新吧🥲

from one-api.

lijie97 avatar lijie97 commented on May 23, 2024

你怎样可以用gpt-4-vision-preview呢, 我直接报错
json: cannot unmarshal object into Go struct field Message.messages.content of type string

你沒更新吧🥲

我用的docker版本的, 刚刚看了还是v0.5.8-alpha.1, 看着还没有更新到最新的

from one-api.

popdo avatar popdo commented on May 23, 2024

有图片时暂时给个基础扣费也好,总比现在一分不扣强。可以先按图片数量和最低标准或1024的尺寸扣费

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.