Skip to contents

The function does not try to obtain the pricing from the webpage, so the tokens costs must be manually updated after changes. So beware, this might be outdated, especially if you haven't updated the package in a while.

Usage

costs(gpt_replies)

Arguments

gpt_replies

A tibble as output by gpt(). It must have the columns gpt_model, gpt_prompt_tokens and gpt_completion_tokens.

Value

The cost in US$.