forked from Archives/langchain
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.
c9f93f5f74
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.
|
1 year ago | |
---|---|---|
.. | ||
__init__.py | 1 year ago | |
azure_openai.py | 1 year ago | |
base.py | 1 year ago | |
openai.py | 1 year ago | |
promptlayer_openai.py | 1 year ago |