Cainier / gpt-tokens

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

feat: add supportModelType, gpt-4o, gpt4o-2024-05-13 #47

Closed kingchan818 closed 4 months ago

Cainier commented 4 months ago

Thank you for maintaining this project

hellohejinyu commented 4 months ago

gpt-4o still doesn't work

image

gpt-4o support new format content with image, Is billing valid for the new format of content?

image

even if I use ts-ignore to ignore the error, the console still prompts model not found

image
kingchan818 commented 4 months ago

@hellohejinyu, the commit is pending to review in https://github.com/Cainier/gpt-tokens/pull/48 now, as I forgot to define gpt4o type.

Cainier commented 4 months ago

OK, I merged the relevant commits and moved the type supportModelType to pricing.ts

The fixed version is v1.3.6