Problem/Motivation

It would be useful to know prompt token count, as well as, this feature is needed for other features: #3439432: Add maximum prompt length configuration and exception

Steps to reproduce

Proposed resolution

Remaining tasks

  1. [done] Create utility functions with basic calculation (calculate average value with basic math)
  2. [done] Display message with token count when user clicks "Display output" button
  3. Do parent issue #3439432: Add maximum prompt length configuration and exception
  4. At some point later, replace basic calculation with accurate calculation

User interface changes

API changes

Data model changes

Comments

mindaugasd created an issue. See original summary.

mindaugasd’s picture

Issue summary: View changes
Related issues: +#3447290: Token count calculation

  • mindaugasd committed a15f35d0 on 1.0.x
    Issue #3440408 by mindaugasd: Calculate prompt token count
    
mindaugasd’s picture

Issue summary: View changes

Done 1 and 2 tasks

mindaugasd’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.