Skip to content

Conversation

@rajib76
Copy link
Contributor

@rajib76 rajib76 commented Jun 17, 2023

Since this model name is not there in the list MODEL_COST_PER_1K_TOKENS, when we use get_openai_callback(), for gpt 3.5 model in Azure AI, we do not get the cost of the tokens. This will fix this issue

Who can review?

@hwchase17
@agola11

@vercel
Copy link

vercel bot commented Jun 17, 2023

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

A member of the Team first needs to authorize it.

@rajib76
Copy link
Contributor Author

rajib76 commented Jun 19, 2023

@hwchase17 Hi, can this also please be merged. Currently Azure Open AI uses the name of the model as gpt-35-turbo and are charging a flat rate(for both input and output) of 0.002 per 1000 tokens

@dev2049 dev2049 merged commit 0f6ef04 into langchain-ai:master Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants