Openai-messages-token-helper

Latest version: v0.1.10

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.1.10

- Add additional OpenAI.com model names to the `get_token_limit` function.

0.1.9

- Add gpt-4o-mini support, by adding a 33.3x multiplier to the token cost.

0.1.8

- Fix the type for the tool_choice param to be inclusive of "auto" and other options.

0.1.7

- Fix bug where you couldn't pass in example tool calls in `few_shots` to `build_messages`.

0.1.6

- Fix bug where you couldn't pass in `tools` and `default_to_cl100k` to True with a non-OpenAI model.

0.1.5

- Remove spurious `print` call when counting tokens for function calling.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.