projectdavid-common 0.19.0__py3-none-any.whl → 0.20.0__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.
@@ -5,49 +5,64 @@
5
5
  # Also serves as source of truth, describing
6
6
  # supported models
7
7
  # _________________________________________________
8
- MODEL_MAP = {
8
+
9
+ # ------------------------------------------------
10
+ # PROVIDER-SPECIFIC MODEL MAPS
11
+ # Each dictionary acts as the "driver" for that vendor
12
+ # _________________________________________________
13
+
14
+ DEEPSEEK_NATIVE_MODELS = {
9
15
  "deepseek-ai/deepseek-reasoner": "deepseek-reasoner",
10
16
  "deepseek-ai/deepseek-chat": "deepseek-chat",
11
- # Deepseek@TogetherAi
17
+ }
18
+
19
+ TOGETHER_AI_MODELS = {
12
20
  "together-ai/deepseek-ai/DeepSeek-R1": "deepseek-ai/DeepSeek-R1",
13
21
  "together-ai/deepseek-ai/DeepSeek-V3": "deepseek-ai/DeepSeek-V3",
14
22
  "together-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
15
23
  "together-ai/deepseek-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
16
24
  "together-ai/deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free",
17
- # Llama@TogetherAi
18
25
  "together-ai/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
19
26
  "together-ai/meta-llama/Llama-4-Scout-17B-16E-Instruct": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
20
- "together-ai/meta-llama/Llama-3.3-70B-Instruct-Turbo": "meta-llama/Llama-3.3-70B-Instruct-Turbo", # <----issues?
27
+ "together-ai/meta-llama/Llama-3.3-70B-Instruct-Turbo": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
21
28
  "together-ai/meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo": "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
22
29
  "together-ai/meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
23
30
  "together-ai/meta-llama/Llama-Vision-Free": "meta-llama/Llama-Vision-Free",
24
31
  "together-ai/meta-llama/LlamaGuard-2-8b": "meta-llama/LlamaGuard-2-8b",
25
- # Google@TogetherAi
26
32
  "together-ai/google/gemma-2-9b-it": "google/gemma-2-9b-it",
27
- # Mistal@TogeterAi
28
33
  "together-ai/mistralai/Mistral-7B-Instruct-v0.2": "mistralai/Mistral-7B-Instruct-v0.2",
29
34
  "together-ai/mistralai/Mistral-7B-Instruct-v0.3": "mistralai/Mistral-7B-Instruct-v0.3",
30
- # Quen@TogetherAi
31
35
  "together-ai/Qwen/QwQ-32B": "Qwen/QwQ-32B",
32
36
  "together-ai/Qwen/Qwen2.5-Coder-32B-Instruct": "Qwen/Qwen2.5-Coder-32B-Instruct",
33
37
  "together-ai/Qwen/Qwen2-VL-72B-Instruct": "Qwen/Qwen2-VL-72B-Instruct",
34
- # Deepseek@Hyperbolic
38
+ }
39
+
40
+ HYPERBOLIC_MODELS = {
41
+ # DeepSeek
35
42
  "hyperbolic/deepseek-ai/DeepSeek-V3-0324": "deepseek-ai/DeepSeek-V3-0324",
36
43
  "hyperbolic/deepseek-ai/DeepSeek-R1": "deepseek-ai/DeepSeek-R1",
37
44
  "hyperbolic/deepseek-ai/DeepSeek-V3": "deepseek-ai/DeepSeek-V3",
38
- # Llama@Hyperbolic
45
+ # llama
39
46
  "hyperbolic/meta-llama/Llama-3.3-70B-Instruct": "meta-llama/Llama-3.3-70B-Instruct",
40
47
  "hyperbolic/meta-llama/Llama-3.2-3B-Instruct": "meta-llama/Llama-3.2-3B-Instruct",
41
48
  "hyperbolic/meta-llama/Meta-Llama-3.1-405B-Instruct": "meta-llama/Meta-Llama-3.1-405B-Instruct",
42
49
  "hyperbolic/meta-llama/Meta-Llama-3.1-8B-Instruct": "meta-llama/Meta-Llama-3.1-8B-Instruct",
43
50
  "hyperbolic/meta-llama/Meta-Llama-3.1-70B-Instruct": "meta-llama/Meta-Llama-3.1-70B-Instruct",
44
51
  "hyperbolic/meta-llama/Meta-Llama-3-70B-Instruct": "meta-llama/Meta-Llama-3-70B-Instruct",
45
- # Quen@Hyperbolic
52
+ # Quen
46
53
  "hyperbolic/Qwen/QwQ-32B": "Qwen/QwQ-32B",
47
54
  "hyperbolic/Qwen/Qwen2.5-Coder-32B-Instruct": "Qwen/Qwen2.5-Coder-32B-Instruct",
48
55
  "hyperbolic/Qwen/Qwen2.5-72B-Instruct": "Qwen/Qwen2.5-72B-Instruct",
49
- "hyperbolic/Qwen/QwQ-32B-Preview": "Qwen/QwQ-32B-Preview",
50
- # --- Google Gemini & Gemma Models ---
56
+ "hyperbolic/Qwen/Qwen3-Next-80B-A3B-Thinking": "Qwen/Qwen3-Next-80B-A3B-Thinking",
57
+ "hyperbolic/Qwen/Qwen3-Coder-480B-A35B-Instruct": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
58
+ "hyperbolic/Qwen/Qwen3-235B-A22B-Instruct-2507": "Qwen/Qwen3-235B-A22B-Instruct-2507",
59
+ "hyperbolic/Qwen/Qwen3-235B-A22B": "Qwen/Qwen3-235B-A22B",
60
+ # OpenAI
61
+ "hyperbolic/openai/gpt-oss-120b": "openai/gpt-oss-120b",
62
+ "hyperbolic/openai/gpt-oss-20b": "openai/gpt-oss-20b",
63
+ }
64
+
65
+ GOOGLE_GEMINI_MODELS = {
51
66
  "google/gemini-1.0-pro-vision-latest": "gemini-1.0-pro-vision-latest",
52
67
  "google/gemini-pro-vision": "gemini-pro-vision",
53
68
  "google/gemini-1.5-pro-latest": "gemini-1.5-pro-latest",
@@ -85,4 +100,13 @@ MODEL_MAP = {
85
100
  "google/gemma-3-4b-it": "gemma-3-4b-it",
86
101
  "google/gemma-3-12b-it": "gemma-3-12b-it",
87
102
  "google/gemma-3-27b-it": "gemma-3-27b-it",
88
- } # End MODEL_MAP
103
+ }
104
+
105
+ # --- MASTER COMBINED MAP ---
106
+ # This merges them all into one flat lookup for the Router
107
+ MODEL_MAP = {
108
+ **DEEPSEEK_NATIVE_MODELS,
109
+ **TOGETHER_AI_MODELS,
110
+ **HYPERBOLIC_MODELS,
111
+ **GOOGLE_GEMINI_MODELS,
112
+ }
@@ -1,6 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
- from pydantic import BaseModel, Field, validator
3
+ from pydantic import BaseModel, validator
4
4
 
5
5
  from projectdavid_common.constants.ai_model_map import MODEL_MAP
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: projectdavid_common
3
- Version: 0.19.0
3
+ Version: 0.20.0
4
4
  Summary: Common shared custom packages
5
5
  Author-email: "Francis N." <francis.neequaye@projectdavid.co.uk>
6
6
  License: MIT
@@ -2,7 +2,7 @@ projectdavid_common/__init__.py,sha256=qGbd7vBnhtG4f3ppij8IEMbmzSDSHoIYLIEB_u5we
2
2
  projectdavid_common/utils.py,sha256=Q-GpA6R4QbStLFxNNft_sYEA25bVzYqOcsNy8VRHrxs,657
3
3
  projectdavid_common/validation.py,sha256=kKfmdWsMBRjK8gLKgMMW1zs0PDdMJ4c0xNr2GAxReeE,5787
4
4
  projectdavid_common/constants/__init__.py,sha256=i2JnKwAKnlH8A49bQErfbZHP-PtSdJMl3TMTnup9x1M,250
5
- projectdavid_common/constants/ai_model_map.py,sha256=gutSdVHfziAFKoXU69h-euxn-3CU-3LlNJYiPqhymoo,5768
5
+ projectdavid_common/constants/ai_model_map.py,sha256=gEShY-r26i-TMqyynNh279P3D4ThlqWtHiuzrj0x4d8,6443
6
6
  projectdavid_common/constants/assistant_map.py,sha256=sKCC5Rxm5HnsrkzlbLystRJUOVMQQxhq4OVeFZ9p7vo,141
7
7
  projectdavid_common/constants/mime_types.py,sha256=vvuCYP_oreoRkP1D80eRgv8mQTNsQ_huoqO3fLUSviA,1729
8
8
  projectdavid_common/constants/platform.py,sha256=ATXfVuEigWmhl0WRXLhObFlUegNPKdNHGLp4zBjKs04,2679
@@ -17,7 +17,7 @@ projectdavid_common/schemas/files_schema.py,sha256=hNMqVDRc5lsdhxyPWO79QjIpE7NKm
17
17
  projectdavid_common/schemas/inference_schema.py,sha256=LPjKDCq7jBPbQCgwlM97rxO477v3vWwb6RYh4DW0KIs,228
18
18
  projectdavid_common/schemas/messages_schema.py,sha256=LOG22KlDyX_9RWjBuBCox8iMaw1VWqEJBMRE-A7ZOZA,3223
19
19
  projectdavid_common/schemas/runs_schema.py,sha256=UwshWUBIKa8M8hDisue8speKubcOiRnZLmKyxFoN7XQ,5687
20
- projectdavid_common/schemas/stream_schema.py,sha256=_0Op35E5TZ-XLM8j5b3xDRuUobGq2eh40oCx1RyGi_A,645
20
+ projectdavid_common/schemas/stream_schema.py,sha256=4CtzlQD7Jxhmww_jGNCvbspj8fe42tS7kpr_0tU7nxg,638
21
21
  projectdavid_common/schemas/threads_schema.py,sha256=tnGGOZ52xmel2DaWiFtCbfMkEW056xI-WMt4yotmmHI,1533
22
22
  projectdavid_common/schemas/tools_schema.py,sha256=RywLJk1a1-liPnqpf8s9IfTaMBG6uqj3YtV52H7U18g,1815
23
23
  projectdavid_common/schemas/users_schema.py,sha256=777ul1Kg7yxqLZnEtd8rtIHXfZnUzldJx4qYS5brD14,3206
@@ -26,8 +26,8 @@ projectdavid_common/schemas/vectors_schema.py,sha256=KG4HSa6yVgBLe01iSdXKoU3UxRS
26
26
  projectdavid_common/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  projectdavid_common/utilities/identifier_service.py,sha256=7hL4_i7pGs6bibCSkXQIwpMSUCFASFE0VPm6gqMv4sk,2950
28
28
  projectdavid_common/utilities/logging_service.py,sha256=ONKy3PRjIrxIrTJ_X3iv7v9HA0wyejyw4WrQYlJy7Oc,2614
29
- projectdavid_common-0.19.0.dist-info/METADATA,sha256=LS2o958IGwdnsJ6XCnxqQWDNheb781ALQb3co51ts3g,1642
30
- projectdavid_common-0.19.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- projectdavid_common-0.19.0.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
32
- projectdavid_common-0.19.0.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
33
- projectdavid_common-0.19.0.dist-info/RECORD,,
29
+ projectdavid_common-0.20.0.dist-info/METADATA,sha256=zdPw5Ngy2Hix6WU1XPcSgJXpxgWzlPGMz0rVPX02hkI,1642
30
+ projectdavid_common-0.20.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ projectdavid_common-0.20.0.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
32
+ projectdavid_common-0.20.0.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
33
+ projectdavid_common-0.20.0.dist-info/RECORD,,