市值: $2.3441T -0.85%
成交额(24h): $77.9427B 21.48%
  • 市值: $2.3441T -0.85%
  • 成交额(24h): $77.9427B 21.48%
  • 恐惧与贪婪指数:
  • 市值: $2.3441T -0.85%
加密货币
话题
百科
资讯
加密话题
视频
热门新闻
加密货币
话题
百科
资讯
加密话题
视频
bitcoin
bitcoin

$87959.907984 USD

1.34%

ethereum
ethereum

$2920.497338 USD

3.04%

tether
tether

$0.999775 USD

0.00%

xrp
xrp

$2.237324 USD

8.12%

bnb
bnb

$860.243768 USD

0.90%

solana
solana

$138.089498 USD

5.43%

usd-coin
usd-coin

$0.999807 USD

0.01%

tron
tron

$0.272801 USD

-1.53%

dogecoin
dogecoin

$0.150904 USD

2.96%

cardano
cardano

$0.421635 USD

1.97%

hyperliquid
hyperliquid

$32.152445 USD

2.23%

bitcoin-cash
bitcoin-cash

$533.301069 USD

-1.94%

chainlink
chainlink

$12.953417 USD

2.68%

unus-sed-leo
unus-sed-leo

$9.535951 USD

0.73%

zcash
zcash

$521.483386 USD

-2.87%

加密货币新闻

引入新的 Anthropic 令牌计数 API

2024/11/09 01:58

使用 Claude 时请密切关注您的成本

引入新的 Anthropic 令牌计数 API

Anthropic has quietly released some exciting beta features over the last couple of days. One of these was the ability to process PDFs with their models, which can now understand both text and visual content within PDF documents. I’ll maybe write up something on that at a later date.

Anthropic 在过去几天悄悄发布了一些令人兴奋的测试版功能。其中之一是能够使用模型处理 PDF,该模型现在可以理解 PDF 文档中的文本和视觉内容。稍后我可能会写一些相关内容。

The other exciting beta feature, and the subject of this article, was the introduction of token counting. Crucially, you can count the tokens in user messages, PDFs and images before you send them to Claude. This is excellent news for those who like to monitor their token usage costs closely.

另一个令人兴奋的测试版功能,也是本文的主题,是令牌计数的引入。至关重要的是,您可以在将用户消息、PDF 和图像发送给 Claude 之前计算它们中的令牌。对于那些喜欢密切监控代币使用成本的人来说,这是个好消息。

According to the official announcement from Anthropic (link here),

根据 Anthropic 的官方公告(链接在此),

“The token counting endpoint accepts the same structured list of inputs for creating a message, including support for system prompts, tools, images, and PDFs. The response contains the total number of input tokens.”

“令牌计数端点接受用于创建消息的相同结构化输入列表,包括对系统提示、工具、图像和 PDF 的支持。响应包含输入令牌的总数。”

And supports the following models,

并支持以下型号,

“Claude 3.5 SonnetClaude 3.5 HaikuClaude 3 HaikuClaude 3 Opus”

“克劳德 3.5 十四行诗克劳德 3.5 俳句克劳德 3 俳句克劳德 3 作品”

原文来源:towardsdatascience

免责声明:info@kdj.com

所提供的信息并非交易建议。根据本文提供的信息进行的任何投资,kdj.com不承担任何责任。加密货币具有高波动性,强烈建议您深入研究后,谨慎投资!

如您认为本网站上使用的内容侵犯了您的版权,请立即联系我们(info@kdj.com),我们将及时删除。

2026年03月24日 发表的其他文章