llama-index-llms-openai 0.6.14__tar.gz → 0.6.15__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.4
2
2
  Name: llama-index-llms-openai
3
- Version: 0.6.14
3
+ Version: 0.6.15
4
4
  Summary: llama-index llms openai integration
5
5
  Author: llama-index
6
6
  License-Expression: MIT
@@ -424,6 +424,16 @@ class OpenAIResponses(FunctionCallingLLM):
424
424
  if self.model in O1_MODELS and self.reasoning_options is not None:
425
425
  model_kwargs["reasoning"] = self.reasoning_options
426
426
 
427
+ if self.reasoning_options is not None:
428
+ params_to_exclude_for_reasoning = {
429
+ "top_p",
430
+ "temperature",
431
+ "presence_penalty",
432
+ "frequency_penalty",
433
+ }
434
+ for param in params_to_exclude_for_reasoning:
435
+ model_kwargs.pop(param, None)
436
+
427
437
  # priority is class args > additional_kwargs > runtime args
428
438
  model_kwargs.update(self.additional_kwargs)
429
439
 
@@ -27,7 +27,7 @@ dev = [
27
27
 
28
28
  [project]
29
29
  name = "llama-index-llms-openai"
30
- version = "0.6.14"
30
+ version = "0.6.15"
31
31
  description = "llama-index llms openai integration"
32
32
  authors = [{name = "llama-index"}]
33
33
  requires-python = ">=3.9,<4.0"