projectdavid-common 0.21.0__py3-none-any.whl → 0.21.2__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.
- projectdavid_common/constants/ai_model_map.py +29 -0
- projectdavid_common/schemas/messages_schema.py +17 -3
- {projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/METADATA +1 -1
- {projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/RECORD +7 -7
- {projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/WHEEL +1 -1
- {projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/entry_points.txt +0 -0
- {projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/top_level.txt +0 -0
|
@@ -17,11 +17,13 @@ DEEPSEEK_NATIVE_MODELS = {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
TOGETHER_AI_MODELS = {
|
|
20
|
+
# --- DeepSeek ---
|
|
20
21
|
"together-ai/deepseek-ai/DeepSeek-R1": "deepseek-ai/DeepSeek-R1",
|
|
21
22
|
"together-ai/deepseek-ai/DeepSeek-V3": "deepseek-ai/DeepSeek-V3",
|
|
22
23
|
"together-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
|
|
23
24
|
"together-ai/deepseek-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
|
|
24
25
|
"together-ai/deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free",
|
|
26
|
+
# --- Meta Llama ---
|
|
25
27
|
"together-ai/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
|
|
26
28
|
"together-ai/meta-llama/Llama-4-Scout-17B-16E-Instruct": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
|
|
27
29
|
"together-ai/meta-llama/Llama-3.3-70B-Instruct-Turbo": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
@@ -29,14 +31,41 @@ TOGETHER_AI_MODELS = {
|
|
|
29
31
|
"together-ai/meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
|
|
30
32
|
"together-ai/meta-llama/Llama-Vision-Free": "meta-llama/Llama-Vision-Free",
|
|
31
33
|
"together-ai/meta-llama/LlamaGuard-2-8b": "meta-llama/LlamaGuard-2-8b",
|
|
34
|
+
# --- Google ---
|
|
32
35
|
"together-ai/google/gemma-2-9b-it": "google/gemma-2-9b-it",
|
|
36
|
+
# --- Mistral ---
|
|
33
37
|
"together-ai/mistralai/Mistral-7B-Instruct-v0.2": "mistralai/Mistral-7B-Instruct-v0.2",
|
|
34
38
|
"together-ai/mistralai/Mistral-7B-Instruct-v0.3": "mistralai/Mistral-7B-Instruct-v0.3",
|
|
39
|
+
# --- Qwen (Legacy/Existing) ---
|
|
35
40
|
"together-ai/Qwen/QwQ-32B": "Qwen/QwQ-32B",
|
|
36
41
|
"together-ai/Qwen/Qwen2.5-Coder-32B-Instruct": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
|
37
42
|
"together-ai/Qwen/Qwen2-VL-72B-Instruct": "Qwen/Qwen2-VL-72B-Instruct",
|
|
43
|
+
# --- Qwen (New Additions) ---
|
|
44
|
+
# Qwen 3 Series
|
|
45
|
+
"together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct": "Qwen/Qwen3-Next-80B-A3B-Instruct",
|
|
46
|
+
"together-ai/Qwen/Qwen3-Next-80B-A3B-Thinking": "Qwen/Qwen3-Next-80B-A3B-Thinking",
|
|
47
|
+
"together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct-FP8": "Qwen/Qwen3-Next-80B-A3B-Instruct-FP8",
|
|
48
|
+
"together-ai/Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",
|
|
49
|
+
"together-ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput": "Qwen/Qwen3-235B-A22B-Instruct-2507-tput",
|
|
50
|
+
"together-ai/Qwen/Qwen3-235B-A22B-fp8-tput": "Qwen/Qwen3-235B-A22B-fp8-tput",
|
|
51
|
+
"together-ai/Qwen/Qwen3-235B-A22B-Thinking-2507": "Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
52
|
+
"together-ai/Qwen/Qwen3-VL-8B-Instruct": "Qwen/Qwen3-VL-8B-Instruct",
|
|
53
|
+
"together-ai/Qwen/Qwen3-VL-32B-Instruct": "Qwen/Qwen3-VL-32B-Instruct",
|
|
54
|
+
"together-ai/Qwen/Qwen3-VL-235B-A22B-Instruct-FP": "Qwen/Qwen3-VL-235B-A22B-Instruct-FP",
|
|
55
|
+
"together-ai/Qwen/Qwen3-8B": "Qwen/Qwen3-8B",
|
|
56
|
+
"together-ai/Qwen/Qwen3-14B-Base": "Qwen/Qwen3-14B-Base",
|
|
57
|
+
# Qwen 2.5 Series
|
|
58
|
+
"together-ai/Qwen/Qwen2.5-72B-Instruct": "Qwen/Qwen2.5-72B-Instruct",
|
|
59
|
+
"together-ai/Qwen/Qwen2.5-72B-Instruct-Turbo": "Qwen/Qwen2.5-72B-Instruct-Turbo",
|
|
60
|
+
"together-ai/Qwen/Qwen2.5-VL-72B-Instruct": "Qwen/Qwen2.5-VL-72B-Instruct",
|
|
61
|
+
"together-ai/Qwen/Qwen2.5-7B-Instruct-Turbo": "Qwen/Qwen2.5-7B-Instruct-Turbo",
|
|
62
|
+
"together-ai/Qwen/Qwen2.5-1.5B": "Qwen/Qwen2.5-1.5B",
|
|
63
|
+
# Misc
|
|
64
|
+
"together-ai/Qwen/Qwen-Image": "Qwen/Qwen-Image",
|
|
65
|
+
"together-ai/Qwen/Qwen2-7B": "Qwen/Qwen2-7B",
|
|
38
66
|
}
|
|
39
67
|
|
|
68
|
+
|
|
40
69
|
HYPERBOLIC_MODELS = {
|
|
41
70
|
# DeepSeek
|
|
42
71
|
"hyperbolic/deepseek-ai/DeepSeek-V3-0324": "deepseek-ai/DeepSeek-V3-0324",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!
|
|
1
|
+
#! src/projectdavid_common/schemas/messages_schema.py
|
|
2
2
|
from enum import Enum
|
|
3
3
|
from typing import Any, Dict, List, Optional
|
|
4
4
|
|
|
@@ -20,6 +20,10 @@ class MessageCreate(BaseModel):
|
|
|
20
20
|
assistant_id: str
|
|
21
21
|
role: str # Using string instead of Enum to allow flexible validation
|
|
22
22
|
tool_id: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
# --- Agentic Tracking ---
|
|
25
|
+
tool_call_id: Optional[str] = None # ID of the call this message responds to
|
|
26
|
+
|
|
23
27
|
meta_data: Optional[Dict[str, Any]] = None
|
|
24
28
|
is_last_chunk: bool = False
|
|
25
29
|
|
|
@@ -48,9 +52,15 @@ class MessageCreate(BaseModel):
|
|
|
48
52
|
|
|
49
53
|
class ToolMessageCreate(BaseModel):
|
|
50
54
|
content: str
|
|
55
|
+
tool_call_id: Optional[str] = None
|
|
51
56
|
|
|
52
57
|
model_config = ConfigDict(
|
|
53
|
-
json_schema_extra={
|
|
58
|
+
json_schema_extra={
|
|
59
|
+
"example": {
|
|
60
|
+
"content": "This is the content of the tool message.",
|
|
61
|
+
"tool_call_id": "call_abc123",
|
|
62
|
+
}
|
|
63
|
+
}
|
|
54
64
|
)
|
|
55
65
|
|
|
56
66
|
|
|
@@ -68,6 +78,10 @@ class MessageRead(BaseModel):
|
|
|
68
78
|
role: str
|
|
69
79
|
run_id: Optional[str]
|
|
70
80
|
tool_id: Optional[str] = None
|
|
81
|
+
|
|
82
|
+
# --- Agentic Tracking ---
|
|
83
|
+
tool_call_id: Optional[str] = None
|
|
84
|
+
|
|
71
85
|
status: Optional[str]
|
|
72
86
|
thread_id: str
|
|
73
87
|
sender_id: Optional[str] = None
|
|
@@ -80,6 +94,7 @@ class MessageUpdate(BaseModel):
|
|
|
80
94
|
meta_data: Optional[Dict[str, Any]]
|
|
81
95
|
status: Optional[str]
|
|
82
96
|
role: Optional[str]
|
|
97
|
+
tool_call_id: Optional[str] = None
|
|
83
98
|
|
|
84
99
|
@field_validator("role", mode="before")
|
|
85
100
|
@classmethod
|
|
@@ -111,7 +126,6 @@ class MessagesList(BaseModel):
|
|
|
111
126
|
|
|
112
127
|
|
|
113
128
|
class MessageDeleted(BaseModel):
|
|
114
|
-
|
|
115
129
|
id: str
|
|
116
130
|
object: str = "thread.message.deleted"
|
|
117
131
|
deleted: bool = True
|
|
@@ -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=
|
|
5
|
+
projectdavid_common/constants/ai_model_map.py,sha256=Ofg7-vo1eZC59acf1DlvGQaC6M0y5MqiBgmcNLj4_50,5718
|
|
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
|
|
@@ -15,7 +15,7 @@ projectdavid_common/schemas/assistants_schema.py,sha256=TMH50SM2ZPbTdnaY7_qmvLev
|
|
|
15
15
|
projectdavid_common/schemas/enums.py,sha256=pQdkz_hmfU_vcZdn4XOvcPOcQihaX_iuQIFk-yKTiaw,692
|
|
16
16
|
projectdavid_common/schemas/files_schema.py,sha256=hNMqVDRc5lsdhxyPWO79QjIpE7NKmKzdQ6hJG8L6LfA,3025
|
|
17
17
|
projectdavid_common/schemas/inference_schema.py,sha256=LPjKDCq7jBPbQCgwlM97rxO477v3vWwb6RYh4DW0KIs,228
|
|
18
|
-
projectdavid_common/schemas/messages_schema.py,sha256=
|
|
18
|
+
projectdavid_common/schemas/messages_schema.py,sha256=4Zes5on7VJubq_02wkEkb29M3CdNPxCdMkSNS6KOyC8,3631
|
|
19
19
|
projectdavid_common/schemas/runs_schema.py,sha256=UwshWUBIKa8M8hDisue8speKubcOiRnZLmKyxFoN7XQ,5687
|
|
20
20
|
projectdavid_common/schemas/stream_schema.py,sha256=4CtzlQD7Jxhmww_jGNCvbspj8fe42tS7kpr_0tU7nxg,638
|
|
21
21
|
projectdavid_common/schemas/threads_schema.py,sha256=tnGGOZ52xmel2DaWiFtCbfMkEW056xI-WMt4yotmmHI,1533
|
|
@@ -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.21.
|
|
30
|
-
projectdavid_common-0.21.
|
|
31
|
-
projectdavid_common-0.21.
|
|
32
|
-
projectdavid_common-0.21.
|
|
33
|
-
projectdavid_common-0.21.
|
|
29
|
+
projectdavid_common-0.21.2.dist-info/METADATA,sha256=vSPZ0S2BFaCt7cnU1sVi3XeYhJ5kqMQ5HznM3qCuRSo,1642
|
|
30
|
+
projectdavid_common-0.21.2.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
31
|
+
projectdavid_common-0.21.2.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
|
|
32
|
+
projectdavid_common-0.21.2.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
|
|
33
|
+
projectdavid_common-0.21.2.dist-info/RECORD,,
|
{projectdavid_common-0.21.0.dist-info → projectdavid_common-0.21.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|