Comments (13)
https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明
這是官方那邊的計算方法, 我們這邊無法直接複製
看看我的想法, 如果要強行計算模型的費用, 那麼要有圖片的原圖, 本地分析解像度, 但這樣會佔用大量服務器帶寬和網絡流量
from one-api.
@ye4293 你可以自己提出計費的想法
from one-api.
from one-api.
???
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.
我的问题,没有细致填写规则
from one-api.
https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明
from one-api.
https://platform.openai.com/docs/guides/vision/calculating-costs 官网这里给出了vision模型发送图片详细扣费说明
這是官方那邊的計算方法, 我們這邊無法直接複製 看看我的想法, 如果要強行計算模型的費用, 那麼要有圖片的原圖, 本地分析解像度, 但這樣會佔用大量服務器帶寬和網絡流量
还有一个方案。无论是上传的图片还是发送的网络图片地址,我们自己计算好将尺寸传递给oneapi计算即可。oneapi每次只需要接收一个额外的size数组参数。oneapi根据这个size计算费用。
from one-api.
自己计算好
用户可以操纵和改变大小,以绕过计算成本
from one-api.
是的,这个计费确实比较麻烦,目前还没有什么好的想法
from one-api.
你怎样可以用gpt-4-vision-preview呢, 我直接报错
json: cannot unmarshal object into Go struct field Message.messages.content of type string
from one-api.
你怎样可以用gpt-4-vision-preview呢, 我直接报错
json: cannot unmarshal object into Go struct field Message.messages.content of type string
你沒更新吧🥲
from one-api.
你怎样可以用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.
有图片时暂时给个基础扣费也好,总比现在一分不扣强。可以先按图片数量和最低标准或1024的尺寸扣费
from one-api.
Related Issues (20)
- 请问如何重置root/admin 的密码 HOT 3
- 在渠道429时希望自动禁用渠道,当自动检测429限速消失时自动恢复
- 支持Claude函数调用 HOT 1
- API without keys - Problem HOT 1
- 使用百度千帆ERNIE-3.5-8K-0205模型出错
- 使用讯飞星火3.5模型出错 HOT 3
- 自定义轮询规则与令牌 HOT 2
- 请求支持Open AI的Assistants API HOT 2
- 执行docker-compose pull报错 “docker-compose pull ERROR: Invalid interpolation format for "healthcheck" option in service "one-api": "wget -q -O - http://localhost:3000/api/status | grep -o '"success":\s*true' | awk -F: '{print $2}'"”
- 讯飞模型出现意义不明报错 HOT 4
- 建议配置使用配置文件,通过viper读取,使用环境变量感觉不是很方便
- One Api not working in hugging face
- 关于失败禁用和自动启用问题 HOT 2
- 最新版报错,insufficient_user_quota user quota is not enough (request id: 2024040323172594066980027391365) HOT 2
- 增加定时清理 log 日志(急) HOT 3
- v1/models 接口返回 unexpected end of JSON input HOT 2
- 令牌额度已用尽日志打印增加用户id HOT 1
- 在令牌维度什么时候能支持IP、ip段限制。很多企业给员工分发了key,只希望员工在公司可以使用。
- 渠道自动禁用邮件通知的问题 HOT 2
- 使用官方openai的流式调用方式,但模型返回的响应没有choice部分 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-api.