Files
langchain-python/langchain/llms
ikebo ca7a44d024 add max_context_size property in BaseOpenAI (#6239)
Hi, I make a small improvement for BaseOpenAI.

I added a max_context_size attribute to BaseOpenAI so that we can get
the max context size directly instead of only getting the maximum token
size of the prompt through the max_tokens_for_prompt method.

Who can review?
@hwchase17 @agola11

I followed the [Common
Tasks](https://github.com/hwchase17/langchain/blob/c7db9febb0edeba1ea108adc4423b789404ce5f2/.github/CONTRIBUTING.md),
the test is all passed.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-06-18 17:46:35 -07:00
..
2023-06-18 16:55:18 -07:00
2023-06-11 10:09:22 -07:00
2023-06-17 19:08:25 +01:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-17 19:08:25 +01:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2022-12-18 16:22:42 -05:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00
2022-11-14 22:05:41 -08:00
2023-06-11 10:09:22 -07:00
2023-06-11 10:09:22 -07:00