Calculation of pricing of tokens in OPENAI calls

题意:在OpenAI调用中计算代币的定价

问题背景:

I'm trying to price the tokens used in a call to OPENAI. I have a txt file with plain text that was uploaded to Qdrant. When I ask the following question:

我正在尝试为调用OpenAI时使用的代币定价。我有一个包含纯文本的txt文件,该文件已上传到Qdrant。当我提出以下问题时:

Who is Michael Jordan?        "Who is Michael Jordan?" 的翻译为:“谁是迈克尔·乔丹?”

and use the get_openai_callback function to track the number of tokens and the price of the operation, one of the keys of information in the output doesn't make sense to me.

并使用 get_openai_callback 函数来跟踪操作中的代币数量和价格,但输出中的一个信息键对我来说没有意义。

To

你可能感兴趣的:(AI,人工智能,python,token,openai,api,langchain,qdrant)