python-fastllm 0.0.29__py3-none-any.whl → 0.0.30__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.
- fastllm/__init__.py +1 -1
- fastllm/chat.py +1 -1
- {python_fastllm-0.0.29.dist-info → python_fastllm-0.0.30.dist-info}/METADATA +1 -1
- {python_fastllm-0.0.29.dist-info → python_fastllm-0.0.30.dist-info}/RECORD +7 -7
- {python_fastllm-0.0.29.dist-info → python_fastllm-0.0.30.dist-info}/WHEEL +0 -0
- {python_fastllm-0.0.29.dist-info → python_fastllm-0.0.30.dist-info}/entry_points.txt +0 -0
- {python_fastllm-0.0.29.dist-info → python_fastllm-0.0.30.dist-info}/top_level.txt +0 -0
fastllm/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.30"
|
fastllm/chat.py
CHANGED
|
@@ -319,12 +319,12 @@ def _has_stop(tres_parts): return any(isinstance(p.text, StopResponse) for p in
|
|
|
319
319
|
# %% ../nbs/07_chat.ipynb #f58ce348
|
|
320
320
|
def _trunc_str(s, mx=2000, skip=10, replace="TRUNCATED"):
|
|
321
321
|
"Truncate `s` to `mx` chars max, adding `replace` if truncated; `mx=None` disables truncation"
|
|
322
|
+
if mx is None or isinstance_str(s, ('FullResponse','Safe','PrettyString')): return s
|
|
322
323
|
if not isinstance(s, str): s = str(s)
|
|
323
324
|
s = type(s)(s.rstrip())
|
|
324
325
|
if len(s)>2 and s[0]=='𝍁' and s[-1]=='𝍁':
|
|
325
326
|
s = s[1:-1]
|
|
326
327
|
if replace: return s
|
|
327
|
-
if isinstance_str(s, ('FullResponse','Safe','PrettyString')): return s
|
|
328
328
|
if mx is None or len(s)<=mx: return s
|
|
329
329
|
s = s[skip:mx-skip]
|
|
330
330
|
ss = s.split(' ')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fastllm/__init__.py,sha256=
|
|
1
|
+
fastllm/__init__.py,sha256=8ZeepqkW4DvpVeNm92mx0tIzgvVevS4NKWkTXXHuXNY,23
|
|
2
2
|
fastllm/_modidx.py,sha256=CSM0Rinlot1qnSPrsvAAyaT-4VdalydB85Nyp9V8eOI,35091
|
|
3
3
|
fastllm/acomplete.py,sha256=XR_wEHBGy0jWXrKbqM1AsnpJlVh8Coq6O5CBBsUNY5Y,9279
|
|
4
4
|
fastllm/anthropic.py,sha256=OHyazPPsXro3ooS0dBy-tk2g8fwXaAS_Cq-7hnc4E6M,15453
|
|
5
|
-
fastllm/chat.py,sha256=
|
|
5
|
+
fastllm/chat.py,sha256=djpgzToNED4i-vxPRb4QUDc4AgTEQjW_qY0QPmA9Wqs,37507
|
|
6
6
|
fastllm/codex.py,sha256=HZchfrGUgdf8ayhtOFbIRmh9YmIqfQBwqviAEeir4Uo,161
|
|
7
7
|
fastllm/gemini.py,sha256=Zw6zIsaQ0yht2qNyuntcaNFDPpGPO3sfi6v_izzXd_4,15044
|
|
8
8
|
fastllm/openai_chat.py,sha256=b3JHumjX-DAxLB02IeKjcUeUkpM7k4SLQ_qdvcfDcwk,10965
|
|
@@ -15,8 +15,8 @@ fastllm/specs/gemini.json,sha256=zJGOdvZ2BvCiTENZt0-BDEvNBMl8h6EBmEskle_WBto,309
|
|
|
15
15
|
fastllm/specs/openai.with-code-samples.json,sha256=Kto19AW1u8MfxVDJ4cFVBIdZQOIyy8NWylswo57eABU,1995929
|
|
16
16
|
fastllm/specs/openai.with-code-samples.yml,sha256=DlcWGdaeP4k7smVjt6UbyehJ-2XGU3rn3nCIBMDRfYU,2553630
|
|
17
17
|
fastllm/specs/spec_manifest.json,sha256=9tVFwojXFnNqsAxQzCRTP1lgSIM0fXixnrXdv4Cmb0c,653
|
|
18
|
-
python_fastllm-0.0.
|
|
19
|
-
python_fastllm-0.0.
|
|
20
|
-
python_fastllm-0.0.
|
|
21
|
-
python_fastllm-0.0.
|
|
22
|
-
python_fastllm-0.0.
|
|
18
|
+
python_fastllm-0.0.30.dist-info/METADATA,sha256=h086WijoWUPCeaciCCH92SXPJ19X8Ai1ciusQMgwgII,19577
|
|
19
|
+
python_fastllm-0.0.30.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
20
|
+
python_fastllm-0.0.30.dist-info/entry_points.txt,sha256=_cVRbpVkvyxdZfR7UCXa0lIXZtTSsZQWoBPhDwMqrHs,80
|
|
21
|
+
python_fastllm-0.0.30.dist-info/top_level.txt,sha256=F8qodL7nEGUHGmzzqfhNKCTIr1i0D6cvudOnm3z7o0Y,8
|
|
22
|
+
python_fastllm-0.0.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|