Cainier / gpt-tokens

Calculate the token consumption and amount of openai gpt message
MIT License
106 stars 13 forks source link

Support `gpt-3.5-turbo-0125`, `gpt-3.5-turbo-instruct`, and `gpt-4-turbo-0125-preview` #38

Closed sebastiansandqvist closed 9 months ago

sebastiansandqvist commented 9 months ago

This PR kicks off support for the gpt-3.5-turbo-0125, gpt-3.5-turbo-instruct, and gpt-4-0125-preview models.

It also sets the default gpt-3.5-turbo model to gpt-3.5-turbo-0125.

Cainier commented 9 months ago

Thank you very much for your contribution, but I have optimized the mapping between models and prices in v1.3.2 (After that just maintain the file src/pricing.ts)

So these submissions cannot be merged.