langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Update model token mappings/cost to include 0613 models

Open eoriont opened this issue 2 years ago • 1 comments

Add gpt-3.5-turbo-16k to model token mappings, as per the following new OpenAI blog post: https://openai.com/blog/function-calling-and-other-api-updates

Fixes #6118

Before submitting

Each example using gpt-3.5-turbo should already work, and I think shouldn't be updated as the new 16k token model costs more per token to use.

If there are tests I should add, please let me know.

Who can review?

Tag maintainers/contributors who might be interested:

@hwchase17

eoriont avatar Jun 13 '23 22:06 eoriont

@eoriont Could you also add the tokens for the 0613 models? That would be: gpt-4-32k-0613, gpt-4-0613, gpt-3.5-turbo-0613, and gpt-3.5-turbo-16k-0613

mheguy-stingray avatar Jun 13 '23 23:06 mheguy-stingray

This also fixes #6150. Any thoughts @hwchase17 @agola11?

eoriont avatar Jun 17 '23 03:06 eoriont

@hwchase17 is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 18 '23 18:06 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain 🛑 Canceled (Inspect) Jun 21, 2023 8:33am

vercel[bot] avatar Jun 21 '23 08:06 vercel[bot]

thanks @eoriont!

dev2049 avatar Jun 21 '23 08:06 dev2049