llama-index-llms-openai 0.2.13__py3-none-any.whl → 0.2.14__py3-none-any.whl

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.
@@ -239,6 +239,8 @@ class OpenAI(FunctionCallingLLM):
239
239
  default_headers: Optional[Dict[str, str]] = None,
240
240
  http_client: Optional[httpx.Client] = None,
241
241
  async_http_client: Optional[httpx.AsyncClient] = None,
242
+ openai_client: Optional[SyncOpenAI] = None,
243
+ async_openai_client: Optional[AsyncOpenAI] = None,
242
244
  # base class
243
245
  system_prompt: Optional[str] = None,
244
246
  messages_to_prompt: Optional[Callable[[Sequence[ChatMessage]], str]] = None,
@@ -282,8 +284,8 @@ class OpenAI(FunctionCallingLLM):
282
284
  **kwargs,
283
285
  )
284
286
 
285
- self._client = None
286
- self._aclient = None
287
+ self._client = openai_client
288
+ self._aclient = async_openai_client
287
289
  self._http_client = http_client
288
290
  self._async_http_client = async_http_client
289
291
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-llms-openai
3
- Version: 0.2.13
3
+ Version: 0.2.14
4
4
  Summary: llama-index llms openai integration
5
5
  License: MIT
6
6
  Author: llama-index
@@ -0,0 +1,6 @@
1
+ llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
+ llama_index/llms/openai/base.py,sha256=3NCyT05dhooucu8hVURtfb1-Jv7uxRIRWM5JPcwuNk8,35332
3
+ llama_index/llms/openai/utils.py,sha256=CLKXZlnafL7i0hNQrMS21GmyPG3Mj5NpSOvAksI-4p8,15835
4
+ llama_index_llms_openai-0.2.14.dist-info/METADATA,sha256=MljP48-GuZrbVoX0K_MW8EEkw22xziM42Mcn32E0YAI,3323
5
+ llama_index_llms_openai-0.2.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ llama_index_llms_openai-0.2.14.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- llama_index/llms/openai/__init__.py,sha256=vm3cIBSGkBFlE77GyfyN0EhpJcnJZN95QMhPN53EkbE,148
2
- llama_index/llms/openai/base.py,sha256=tyapzQX3I3WMgH4qwAKU4A7eaa73lnJh9Bc34pvMD0k,35197
3
- llama_index/llms/openai/utils.py,sha256=CLKXZlnafL7i0hNQrMS21GmyPG3Mj5NpSOvAksI-4p8,15835
4
- llama_index_llms_openai-0.2.13.dist-info/METADATA,sha256=3gRM0x9SQT9tWekmHjS-YrKgRdTqKuMfO5_dJwxX0OQ,3323
5
- llama_index_llms_openai-0.2.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- llama_index_llms_openai-0.2.13.dist-info/RECORD,,