You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/chat_models
tmyjoe c9f93f5f74
fix: token counting for chat openai. (#2543)
I noticed that the value of get_num_tokens_from_messages in `ChatOpenAI`
is always one less than the response from OpenAI's API. Upon checking
the official documentation, I found that it had been updated, so I made
the necessary corrections.
Then now I got the same value from OpenAI's API.


d972e7482e (diff-2d4485035b3a3469802dbad11d7b4f834df0ea0e2790f418976b303bc82c1874L474)
1 year ago
..
__init__.py AzureChatOpenAI for Azure Open AI's ChatGPT API (#1673) 1 year ago
azure_openai.py Harrison/allow org none (#2527) 1 year ago
base.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
openai.py fix: token counting for chat openai. (#2543) 1 year ago
promptlayer_openai.py Removed duplicate BaseModel dependencies (#2471) 1 year ago