langroid 0.56.18__py3-none-any.whl → 0.56.19__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.
- langroid/agent/chat_agent.py +1 -1
- langroid/language_models/openai_gpt.py +1 -1
- {langroid-0.56.18.dist-info → langroid-0.56.19.dist-info}/METADATA +1 -1
- {langroid-0.56.18.dist-info → langroid-0.56.19.dist-info}/RECORD +6 -6
- {langroid-0.56.18.dist-info → langroid-0.56.19.dist-info}/WHEEL +0 -0
- {langroid-0.56.18.dist-info → langroid-0.56.19.dist-info}/licenses/LICENSE +0 -0
langroid/agent/chat_agent.py
CHANGED
@@ -1565,7 +1565,7 @@ class ChatAgent(Agent):
|
|
1565
1565
|
- CHAT_HISTORY_BUFFER
|
1566
1566
|
)
|
1567
1567
|
if output_len > self.config.llm.min_output_tokens:
|
1568
|
-
logger.
|
1568
|
+
logger.debug(
|
1569
1569
|
f"""
|
1570
1570
|
Chat Model context length is {self.llm.chat_context_length()},
|
1571
1571
|
but the current message history is {self.chat_num_tokens(hist)}
|
@@ -1526,7 +1526,7 @@ class OpenAIGPT(LanguageModel):
|
|
1526
1526
|
usage = response.get("usage")
|
1527
1527
|
if not cached and not self.get_stream() and usage is not None:
|
1528
1528
|
prompt_tokens = usage.get("prompt_tokens") or 0
|
1529
|
-
prompt_tokens_details = usage.get("prompt_tokens_details", {})
|
1529
|
+
prompt_tokens_details = usage.get("prompt_tokens_details", {}) or {}
|
1530
1530
|
cached_tokens = prompt_tokens_details.get("cached_tokens") or 0
|
1531
1531
|
completion_tokens = usage.get("completion_tokens") or 0
|
1532
1532
|
cost = self._cost_chat_model(
|
@@ -5,7 +5,7 @@ langroid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
langroid/agent/__init__.py,sha256=ll0Cubd2DZ-fsCMl7e10hf9ZjFGKzphfBco396IKITY,786
|
6
6
|
langroid/agent/base.py,sha256=exiOhO0L1StZ8ziPBnunHYiKFvEnRyaLnMpBrc8tyMw,86263
|
7
7
|
langroid/agent/batch.py,sha256=wpE9RqCNDVDhAXkCB7wEqfCIEAi6qKcrhaZ-Zr9T4C0,21375
|
8
|
-
langroid/agent/chat_agent.py,sha256=
|
8
|
+
langroid/agent/chat_agent.py,sha256=H_6IgyIcyZ1SPUpagxVZcWVTQrQw0EJaCeTX3yiwREU,88954
|
9
9
|
langroid/agent/chat_document.py,sha256=0e6zYkqIorMIVbCsxOul9ziwAPPOWDsBsRV9E8ux-WI,18055
|
10
10
|
langroid/agent/done_sequence_parser.py,sha256=oUPzQCkkAo-5qos3ndSV47Lre7O_LoGWwTybjE9sCwc,4381
|
11
11
|
langroid/agent/openai_assistant.py,sha256=JkAcs02bIrgPNVvUWVR06VCthc5-ulla2QMBzux_q6o,34340
|
@@ -78,7 +78,7 @@ langroid/language_models/client_cache.py,sha256=YtGcpalYkS_ckMU12J7VmUOGmVv1wzuL
|
|
78
78
|
langroid/language_models/config.py,sha256=9Q8wk5a7RQr8LGMT_0WkpjY8S4ywK06SalVRjXlfCiI,378
|
79
79
|
langroid/language_models/mock_lm.py,sha256=tA9JpURznsMZ59iRhFYMmaYQzAc0D0BT-PiJIV58sAk,4079
|
80
80
|
langroid/language_models/model_info.py,sha256=LzRfZsWmOm7WF6KGJfcN0aVdRqk0URNuDGMMz6cFt50,17121
|
81
|
-
langroid/language_models/openai_gpt.py,sha256=
|
81
|
+
langroid/language_models/openai_gpt.py,sha256=fYRZlfpo1CF8ePF1Cuy2CtStxDhpq6AeTxwuqK-z_T8,89329
|
82
82
|
langroid/language_models/provider_params.py,sha256=fX25NAmYUIc1-nliMKpmTGZO6D6RpyTXtSDdZCZdb5w,5464
|
83
83
|
langroid/language_models/utils.py,sha256=n55Oe2_V_4VNGhytvPWLYC-0tFS07RTjN83KWl-p_MI,6032
|
84
84
|
langroid/language_models/prompt_formatter/__init__.py,sha256=2-5cdE24XoFDhifOLl8yiscohil1ogbP1ECkYdBlBsk,372
|
@@ -138,7 +138,7 @@ langroid/vector_store/pineconedb.py,sha256=otxXZNaBKb9f_H75HTaU3lMHiaR2NUp5MqwLZ
|
|
138
138
|
langroid/vector_store/postgres.py,sha256=wHPtIi2qM4fhO4pMQr95pz1ZCe7dTb2hxl4VYspGZoA,16104
|
139
139
|
langroid/vector_store/qdrantdb.py,sha256=ZYrT9mxoUCx_67Qzb5xnkWuFG12rfe30yAg4NgG2ueA,19168
|
140
140
|
langroid/vector_store/weaviatedb.py,sha256=Yn8pg139gOy3zkaPfoTbMXEEBCiLiYa1MU5d_3UA1K4,11847
|
141
|
-
langroid-0.56.
|
142
|
-
langroid-0.56.
|
143
|
-
langroid-0.56.
|
144
|
-
langroid-0.56.
|
141
|
+
langroid-0.56.19.dist-info/METADATA,sha256=MAclkPH3rlv_kit6VBaIuoGBig-CupcbNxu4Gq1RlIo,65745
|
142
|
+
langroid-0.56.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
143
|
+
langroid-0.56.19.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
144
|
+
langroid-0.56.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|