llama-index-llms-openai 0.3.23__tar.gz → 0.3.25__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.3.23
3
+ Version: 0.3.25
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -266,6 +266,11 @@ class OpenAI(FunctionCallingLLM):
266
266
  audio_config: Optional[Dict[str, Any]] = None,
267
267
  **kwargs: Any,
268
268
  ) -> None:
269
+ # TODO: Support deprecated max_new_tokens
270
+ if "max_new_tokens" in kwargs:
271
+ max_tokens = kwargs["max_new_tokens"]
272
+ del kwargs["max_new_tokens"]
273
+
269
274
  additional_kwargs = additional_kwargs or {}
270
275
 
271
276
  api_key, api_base, api_version = resolve_openai_credentials(
@@ -29,7 +29,7 @@ exclude = ["**/BUILD"]
29
29
  license = "MIT"
30
30
  name = "llama-index-llms-openai"
31
31
  readme = "README.md"
32
- version = "0.3.23"
32
+ version = "0.3.25"
33
33
 
34
34
  [tool.poetry.dependencies]
35
35
  python = ">=3.9,<4.0"