not-again-ai 0.8.0__py3-none-any.whl → 0.8.1__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.
@@ -82,6 +82,8 @@ def num_tokens_from_messages(messages: list[dict[str, str]], model: str = "gpt-3
82
82
  "gpt-4-0125-preview",
83
83
  "gpt-4-turbo",
84
84
  "gpt-4-turbo-2024-04-09",
85
+ "gpt-4o",
86
+ "gpt-4o-2024-05-13",
85
87
  }:
86
88
  tokens_per_message = 3 # every message follows <|start|>{role/name}\n{content}<|end|>\n
87
89
  tokens_per_name = 1 # if there's a name, the role is omitted
@@ -91,6 +93,8 @@ def num_tokens_from_messages(messages: list[dict[str, str]], model: str = "gpt-3
91
93
  # Approximate catch-all. Assumes future versions of 3.5 and 4 will have the same token counts as the 0613 versions.
92
94
  elif "gpt-3.5-turbo" in model:
93
95
  return num_tokens_from_messages(messages, model="gpt-3.5-turbo-0613")
96
+ elif "gpt-4o" in model:
97
+ return num_tokens_from_messages(messages, model="gpt-4o-2024-05-13")
94
98
  elif "gpt-4" in model:
95
99
  return num_tokens_from_messages(messages, model="gpt-4-0613")
96
100
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not-again-ai
3
- Version: 0.8.0
3
+ Version: 0.8.1
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,14 +21,14 @@ Provides-Extra: llm
21
21
  Provides-Extra: statistics
22
22
  Provides-Extra: viz
23
23
  Requires-Dist: numpy (>=1.26.4,<2.0.0) ; extra == "statistics" or extra == "viz"
24
- Requires-Dist: ollama (>=0.1.9,<0.2.0) ; extra == "llm"
25
- Requires-Dist: openai (>=1.25.1,<2.0.0) ; extra == "llm"
24
+ Requires-Dist: ollama (>=0.2.0,<0.3.0) ; extra == "llm"
25
+ Requires-Dist: openai (>=1.29.0,<2.0.0) ; extra == "llm"
26
26
  Requires-Dist: pandas (>=2.2.2,<3.0.0) ; extra == "viz"
27
27
  Requires-Dist: python-liquid (>=1.12.1,<2.0.0) ; extra == "llm"
28
28
  Requires-Dist: scikit-learn (>=1.4.2,<2.0.0) ; extra == "statistics"
29
29
  Requires-Dist: scipy (>=1.13.0,<2.0.0) ; extra == "statistics"
30
30
  Requires-Dist: seaborn (>=0.13.2,<0.14.0) ; extra == "viz"
31
- Requires-Dist: tiktoken (>=0.6.0,<0.7.0) ; extra == "llm"
31
+ Requires-Dist: tiktoken (>=0.7.0,<0.8.0) ; extra == "llm"
32
32
  Project-URL: Documentation, https://github.com/DaveCoDev/not-again-ai
33
33
  Project-URL: Repository, https://github.com/DaveCoDev/not-again-ai
34
34
  Description-Content-Type: text/markdown
@@ -14,7 +14,7 @@ not_again_ai/llm/openai_api/context_management.py,sha256=SKksCHs-C-UXtSksvXSvWWR
14
14
  not_again_ai/llm/openai_api/embeddings.py,sha256=4OBnxZicrY6q4dQhuPqMdAnifyjwrsKMTDj-kVre0yc,2500
15
15
  not_again_ai/llm/openai_api/openai_client.py,sha256=6pZw2xw9X-ceV22rhApwFJ2tAKCxi-SxkjxBsTBZ2Nw,2470
16
16
  not_again_ai/llm/openai_api/prompts.py,sha256=7cDfvIKCTYM0t5lK34FLLqYf-SR_cynDXIXw3zWDizA,7094
17
- not_again_ai/llm/openai_api/tokens.py,sha256=2WGHzZJ0mIFAGpkuS_otjFzwhqjaSMgLoP2FVMnJTiE,4301
17
+ not_again_ai/llm/openai_api/tokens.py,sha256=pshGOSYAKvDAe2vnkib_vwENT5on8xQznC8ErLvciK4,4453
18
18
  not_again_ai/py.typed,sha256=UaCuPFa3H8UAakbt-5G8SPacldTOGvJv18pPjUJ5gDY,93
19
19
  not_again_ai/statistics/__init__.py,sha256=gA8r9JQFbFSN0ykrHy4G1IQgcky4f2eM5Oo24oVI5Ik,466
20
20
  not_again_ai/statistics/dependence.py,sha256=yZDk_e3ng96mp4hu8dDtQ0-uIn6KdSuGRS9uyM0O3x0,4429
@@ -24,8 +24,8 @@ not_again_ai/viz/distributions.py,sha256=OyWwJaNI6lMRm_iSrhq-CORLNvXfeuLSgDtVo3u
24
24
  not_again_ai/viz/scatterplot.py,sha256=eBtIf0Tf_1EcN-akRNJgvwLU0zpRx1zOl0VF9QTnbZA,2290
25
25
  not_again_ai/viz/time_series.py,sha256=pOGZqXp_2nd6nKo-PUQNCtmMh__69jxQ6bQibTGLwZA,5212
26
26
  not_again_ai/viz/utils.py,sha256=hN7gwxtBt3U6jQni2K8j5m5pCXpaJDoNzGhBBikEU28,238
27
- not_again_ai-0.8.0.dist-info/LICENSE,sha256=btjOgNGpp-ux5xOo1Gx1MddxeWtT9sof3s3Nui29QfA,1071
28
- not_again_ai-0.8.0.dist-info/METADATA,sha256=xM1pNeu0diA32AzTmWV_u8KNXpqkdjRBzrzsfJ9VGr0,14203
29
- not_again_ai-0.8.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- not_again_ai-0.8.0.dist-info/entry_points.txt,sha256=EMJegugnmJUd-jMUA_qIRMIPAasbei8gP6O4-ER0BxQ,61
31
- not_again_ai-0.8.0.dist-info/RECORD,,
27
+ not_again_ai-0.8.1.dist-info/LICENSE,sha256=btjOgNGpp-ux5xOo1Gx1MddxeWtT9sof3s3Nui29QfA,1071
28
+ not_again_ai-0.8.1.dist-info/METADATA,sha256=XjBBZSVDW8tdwDy8hJY6R-xXo9Mec2i6N-5YFs0eRW8,14203
29
+ not_again_ai-0.8.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ not_again_ai-0.8.1.dist-info/entry_points.txt,sha256=EMJegugnmJUd-jMUA_qIRMIPAasbei8gP6O4-ER0BxQ,61
31
+ not_again_ai-0.8.1.dist-info/RECORD,,