My Account

Forums

Home Forums General OpenAI Token Usage and Character Count

Viewing 1 reply thread
  • Author
    Posts
    • #171322

      1. Getting ability to map fields with token usage…
      When OpenAI return data it also return token usage

      “prompt_tokens”
      “completion_tokens”
      “total_tokens”

      For monitoring purposes in multiuser website, can we get the ability to map form fields with token usage in each API request/response?

      2. I have #field(9) which is text area, is there a way to use number of characters in another field… For calculation purposes

      ie: #field(10) count number of characters in #field(9)

      Something like #character_count(#field(9))

      So then letter I can use in my calculations for costs per characters

    • #171338
      Mark Westguard
      Keymaster

      In the next version of the OpenAI add-on there are additional variables you can use to extract the token usage values. You will need to run the form with a submit button rather conditional logic with a button to make this work as the actions have to run concurrently for this to work.

      You can make a feature request for the character count variable here: https://wsform.com/my-account/feature-requests/

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Login