hmarr / openai-chat-tokens

💬 Estimate the number of tokens an OpenAI chat completion will use
MIT License
88 stars 12 forks source link

feat: support anyOf in function parameters #13

Closed b0o closed 1 year ago

b0o commented 1 year ago

Adds support for the anyOf JSON schema keyword, which is necessary to define discriminated unions.

hmarr commented 1 year ago

Thanks @b0o!