not-again-ai 0.10.1__py3-none-any.whl → 0.10.3__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.
- not_again_ai/llm/openai_api/tokens.py +2 -0
- {not_again_ai-0.10.1.dist-info → not_again_ai-0.10.3.dist-info}/METADATA +14 -13
- {not_again_ai-0.10.1.dist-info → not_again_ai-0.10.3.dist-info}/RECORD +6 -6
- {not_again_ai-0.10.1.dist-info → not_again_ai-0.10.3.dist-info}/LICENSE +0 -0
- {not_again_ai-0.10.1.dist-info → not_again_ai-0.10.3.dist-info}/WHEEL +0 -0
- {not_again_ai-0.10.1.dist-info → not_again_ai-0.10.3.dist-info}/entry_points.txt +0 -0
@@ -86,6 +86,8 @@ def num_tokens_from_messages(
|
|
86
86
|
"gpt-4-turbo-2024-04-09",
|
87
87
|
"gpt-4o",
|
88
88
|
"gpt-4o-2024-05-13",
|
89
|
+
"gpt-4o-mini",
|
90
|
+
"gpt-4o-mini-2024-07-18",
|
89
91
|
}:
|
90
92
|
tokens_per_message = 3 # every message follows <|start|>{role/name}\n{content}<|end|>\n
|
91
93
|
tokens_per_name = 1 # if there's a name, the role is omitted
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: not-again-ai
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.3
|
4
4
|
Summary: Designed to once and for all collect all the little things that come up over and over again in AI projects and put them in one place.
|
5
5
|
Home-page: https://github.com/DaveCoDev/not-again-ai
|
6
6
|
License: MIT
|
@@ -21,18 +21,18 @@ Provides-Extra: llm
|
|
21
21
|
Provides-Extra: local-llm
|
22
22
|
Provides-Extra: statistics
|
23
23
|
Provides-Extra: viz
|
24
|
-
Requires-Dist: jinja2 (
|
24
|
+
Requires-Dist: jinja2 (>=3.1,<4.0) ; extra == "local-llm"
|
25
25
|
Requires-Dist: loguru (==0.7.2)
|
26
|
-
Requires-Dist: numpy (
|
27
|
-
Requires-Dist: ollama (
|
28
|
-
Requires-Dist: openai (
|
29
|
-
Requires-Dist: pandas (
|
30
|
-
Requires-Dist: python-liquid (
|
31
|
-
Requires-Dist: scikit-learn (
|
32
|
-
Requires-Dist: scipy (
|
33
|
-
Requires-Dist: seaborn (
|
34
|
-
Requires-Dist: tiktoken (
|
35
|
-
Requires-Dist: transformers (
|
26
|
+
Requires-Dist: numpy (>=1.26,<2.0) ; extra == "statistics" or extra == "viz"
|
27
|
+
Requires-Dist: ollama (>=0.2,<0.3) ; extra == "local-llm"
|
28
|
+
Requires-Dist: openai (>=1.36,<2.0) ; extra == "llm"
|
29
|
+
Requires-Dist: pandas (>=2.2,<3.0) ; extra == "viz"
|
30
|
+
Requires-Dist: python-liquid (>=1.12,<2.0) ; extra == "llm"
|
31
|
+
Requires-Dist: scikit-learn (>=1.5,<2.0) ; extra == "statistics"
|
32
|
+
Requires-Dist: scipy (>=1.14,<2.0) ; extra == "statistics"
|
33
|
+
Requires-Dist: seaborn (>=0.13,<0.14) ; extra == "viz"
|
34
|
+
Requires-Dist: tiktoken (>=0.7,<0.8) ; extra == "llm"
|
35
|
+
Requires-Dist: transformers (>=4.42,<5.0) ; extra == "local-llm"
|
36
36
|
Project-URL: Documentation, https://github.com/DaveCoDev/not-again-ai
|
37
37
|
Project-URL: Repository, https://github.com/DaveCoDev/not-again-ai
|
38
38
|
Description-Content-Type: text/markdown
|
@@ -86,7 +86,8 @@ The package is split into subpackages, so you can install only the parts you nee
|
|
86
86
|
...
|
87
87
|
Environment="OLLAMA_HOST=0.0.0.0"
|
88
88
|
```
|
89
|
-
|
89
|
+
1. It is recommended to always have the latest version of Ollama. To update Ollama check the [docs](https://github.com/ollama/ollama/blob/main/docs/). The command for Linux is: `curl -fsSL https://ollama.com/install.sh | sh`
|
90
|
+
2. HuggingFace transformers and other requirements are hardware dependent so for providers other than Ollama, this only installs some generic dependencies. Check the [notebooks](notebooks/local_llm/) for more details on what is available and how to install it.
|
90
91
|
* **Statistics**: `pip install not_again_ai[statistics]`
|
91
92
|
* **Visualization**: `pip install not_again_ai[viz]`
|
92
93
|
|
@@ -9,7 +9,7 @@ not_again_ai/llm/openai_api/context_management.py,sha256=BJSG100_qw9MeTCZGztDV5C
|
|
9
9
|
not_again_ai/llm/openai_api/embeddings.py,sha256=4OBnxZicrY6q4dQhuPqMdAnifyjwrsKMTDj-kVre0yc,2500
|
10
10
|
not_again_ai/llm/openai_api/openai_client.py,sha256=6pZw2xw9X-ceV22rhApwFJ2tAKCxi-SxkjxBsTBZ2Nw,2470
|
11
11
|
not_again_ai/llm/openai_api/prompts.py,sha256=7cDfvIKCTYM0t5lK34FLLqYf-SR_cynDXIXw3zWDizA,7094
|
12
|
-
not_again_ai/llm/openai_api/tokens.py,sha256=
|
12
|
+
not_again_ai/llm/openai_api/tokens.py,sha256=31neIrY66ejJQ10VB3EWnkN00wuw9vMpCS8tsw2WtFg,4392
|
13
13
|
not_again_ai/local_llm/__init__.py,sha256=BsUn39U3QQaw6yomQHfp_HIPHRIBoMAgjcP3CDADx04,882
|
14
14
|
not_again_ai/local_llm/chat_completion.py,sha256=m0fe7oGPtl46kvAIU6RhHeIvDu_pAWphrAbFY3K1i1E,3407
|
15
15
|
not_again_ai/local_llm/huggingface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -32,8 +32,8 @@ not_again_ai/viz/distributions.py,sha256=OyWwJaNI6lMRm_iSrhq-CORLNvXfeuLSgDtVo3u
|
|
32
32
|
not_again_ai/viz/scatterplot.py,sha256=5CUOWeknbBOaZPeX9oPin5sBkRKEwk8qeFH45R-9LlY,2292
|
33
33
|
not_again_ai/viz/time_series.py,sha256=pOGZqXp_2nd6nKo-PUQNCtmMh__69jxQ6bQibTGLwZA,5212
|
34
34
|
not_again_ai/viz/utils.py,sha256=hN7gwxtBt3U6jQni2K8j5m5pCXpaJDoNzGhBBikEU28,238
|
35
|
-
not_again_ai-0.10.
|
36
|
-
not_again_ai-0.10.
|
37
|
-
not_again_ai-0.10.
|
38
|
-
not_again_ai-0.10.
|
39
|
-
not_again_ai-0.10.
|
35
|
+
not_again_ai-0.10.3.dist-info/LICENSE,sha256=btjOgNGpp-ux5xOo1Gx1MddxeWtT9sof3s3Nui29QfA,1071
|
36
|
+
not_again_ai-0.10.3.dist-info/METADATA,sha256=aXiTuKLLH3tLVi6Lz-5J0_OWn2XwATyJRt975_aPQnA,15518
|
37
|
+
not_again_ai-0.10.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
38
|
+
not_again_ai-0.10.3.dist-info/entry_points.txt,sha256=EMJegugnmJUd-jMUA_qIRMIPAasbei8gP6O4-ER0BxQ,61
|
39
|
+
not_again_ai-0.10.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|