go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

Suggestion to include tiktoken token counting support

Open practicehelps opened this issue 6 months ago • 0 comments

Your issue may already be reported! Please search on the issue tracker before creating one.

Is your feature request related to a problem? Please describe. For billing the open ai API calls, wondering if one could integrate the tiktoken go ported library: https://github.com/pkoukk/tiktoken-go

Describe the solution you'd like https://github.com/pkoukk/tiktoken-go seems to have the token counting support

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

practicehelps avatar May 04 '25 15:05 practicehelps