janito 3.14.1__py3-none-any.whl → 3.14.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.
- janito/providers/deepseek/model_info.py +16 -37
- janito/providers/deepseek/provider.py +4 -3
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/METADATA +1 -4
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/RECORD +8 -8
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/WHEEL +0 -0
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/entry_points.txt +0 -0
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/licenses/LICENSE +0 -0
- {janito-3.14.1.dist-info → janito-3.14.2.dist-info}/top_level.txt +0 -0
@@ -1,37 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
"description": "DeepSeek V3.1 Model (128K context, OpenAI-compatible)",
|
18
|
-
"context_window": 131072,
|
19
|
-
"max_tokens": 4096,
|
20
|
-
"family": "deepseek",
|
21
|
-
"default": False,
|
22
|
-
},
|
23
|
-
"deepseek-v3.1-base": {
|
24
|
-
"description": "DeepSeek V3.1 Base Model (128K context, OpenAI-compatible)",
|
25
|
-
"context_window": 131072,
|
26
|
-
"max_tokens": 4096,
|
27
|
-
"family": "deepseek",
|
28
|
-
"default": False,
|
29
|
-
},
|
30
|
-
"deepseek-r1": {
|
31
|
-
"description": "DeepSeek R1 Model (128K context, OpenAI-compatible)",
|
32
|
-
"context_window": 131072,
|
33
|
-
"max_tokens": 4096,
|
34
|
-
"family": "deepseek",
|
35
|
-
"default": False,
|
36
|
-
},
|
37
|
-
}
|
1
|
+
from janito.llm.model import LLMModelInfo
|
2
|
+
|
3
|
+
MODEL_SPECS = {
|
4
|
+
"deepseek-chat": LLMModelInfo(
|
5
|
+
name="deepseek-chat",
|
6
|
+
context=131072, # 128K context
|
7
|
+
max_response=4096, # Default 4K, Maximum 8K
|
8
|
+
driver="OpenAIModelDriver",
|
9
|
+
),
|
10
|
+
"deepseek-reasoner": LLMModelInfo(
|
11
|
+
name="deepseek-reasoner",
|
12
|
+
context=131072, # 128K context
|
13
|
+
max_response=32768, # Default 32K, Maximum 64K
|
14
|
+
driver="OpenAIModelDriver",
|
15
|
+
),
|
16
|
+
}
|
@@ -19,7 +19,7 @@ class DeepSeekProvider(LLMProvider):
|
|
19
19
|
NAME = "deepseek" # For backward compatibility
|
20
20
|
MAINTAINER = "João Pinto <janito@ikignosis.org>"
|
21
21
|
MODEL_SPECS = MODEL_SPECS
|
22
|
-
DEFAULT_MODEL = "deepseek-chat" # Options: deepseek-chat, deepseek-reasoner
|
22
|
+
DEFAULT_MODEL = "deepseek-chat" # Options: deepseek-chat, deepseek-reasoner
|
23
23
|
available = OpenAIModelDriver.available
|
24
24
|
unavailable_reason = OpenAIModelDriver.unavailable_reason
|
25
25
|
|
@@ -51,7 +51,6 @@ class DeepSeekProvider(LLMProvider):
|
|
51
51
|
if not getattr(self.config, "base_url", None):
|
52
52
|
self.config.base_url = "https://api.deepseek.com/v1"
|
53
53
|
|
54
|
-
@property
|
55
54
|
def create_driver(self) -> OpenAIModelDriver:
|
56
55
|
"""
|
57
56
|
Create and return a new OpenAIModelDriver instance for DeepSeek.
|
@@ -75,4 +74,6 @@ class DeepSeekProvider(LLMProvider):
|
|
75
74
|
return self.tools_adapter.execute_by_name(tool_name, *args, **kwargs)
|
76
75
|
|
77
76
|
|
78
|
-
# Registration
|
77
|
+
# Registration
|
78
|
+
from janito.providers.registry import LLMProviderRegistry
|
79
|
+
LLMProviderRegistry.register(DeepSeekProvider.name, DeepSeekProvider)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: janito
|
3
|
-
Version: 3.14.
|
3
|
+
Version: 3.14.2
|
4
4
|
Summary: A new Python package called janito.
|
5
5
|
Author-email: João Pinto <janito@ikignosis.org>
|
6
6
|
Project-URL: Homepage, https://github.com/ikignosis/janito
|
@@ -51,9 +51,6 @@ Run "janito <command> --help" for more information on a command.
|
|
51
51
|
# If you have go already installed
|
52
52
|
go install github.com/ninech/janito@latest
|
53
53
|
|
54
|
-
# Homebrew
|
55
|
-
brew install ninech/taps/janito
|
56
|
-
|
57
54
|
# Debian/Ubuntu
|
58
55
|
echo "deb [trusted=yes] https://repo.nine.ch/deb/ /" | sudo tee /etc/apt/sources.list.d/repo.nine.ch.list
|
59
56
|
sudo apt-get update
|
@@ -216,8 +216,8 @@ janito/providers/cerebras/__init__.py,sha256=w7VvVDG-AmW7axvt80TSM_HvAM7MjtH_2yM
|
|
216
216
|
janito/providers/cerebras/model_info.py,sha256=kfIYk9ypKyrSSBCtyXZejDGexSkerBqNhaU1_sQQPKw,2176
|
217
217
|
janito/providers/cerebras/provider.py,sha256=UBnl4Q1tpI4BdGtKlvvyzSrToAAo2Z2Q4sGrQ2nWklA,2835
|
218
218
|
janito/providers/deepseek/__init__.py,sha256=4sISEpq4bJO29vxFK9cfnO-SRUmKoD7oSdeCvz0hVno,36
|
219
|
-
janito/providers/deepseek/model_info.py,sha256=
|
220
|
-
janito/providers/deepseek/provider.py,sha256=
|
219
|
+
janito/providers/deepseek/model_info.py,sha256=MzLeoFM1UiOxubxDUP2vHmJD-oa_T2j1FXnok7fU4hw,474
|
220
|
+
janito/providers/deepseek/provider.py,sha256=Bw-r4t06ccvbUNZiG-rKbhIW2qjhgokARN2Tei3DTKU,3047
|
221
221
|
janito/providers/google/__init__.py,sha256=hE3OGJvLEhvNLhIK_XmCGIdrIj8MKlyGgdOLJ4mdess,38
|
222
222
|
janito/providers/google/model_info.py,sha256=AakTmzvWm1GPvFzGAq6-PeE_Dpq7BmAAqmh3L8N5KKo,1126
|
223
223
|
janito/providers/google/provider.py,sha256=2Ur89rpXuREWzI6rTkpZVVt7ajfMKZGXVSbVGEj2xEI,2900
|
@@ -266,9 +266,9 @@ janito/tools/tool_utils.py,sha256=alPm9DvtXSw_zPRKvP5GjbebPRf_nfvmWk2TNlL5Cws,12
|
|
266
266
|
janito/tools/tools_adapter.py,sha256=3Phjw34mOqG0KvXzQpZKIWigfSgZWRvdYuSdvV7Dj4M,21965
|
267
267
|
janito/tools/tools_schema.py,sha256=rGrKrmpPNR07VXHAJ_haGBRRO-YGLOF51BlYRep9AAQ,4415
|
268
268
|
janito/tools/url_whitelist.py,sha256=0CPLkHTp5HgnwgjxwgXnJmwPeZQ30q4j3YjW59hiUUE,4295
|
269
|
-
janito-3.14.
|
270
|
-
janito-3.14.
|
271
|
-
janito-3.14.
|
272
|
-
janito-3.14.
|
273
|
-
janito-3.14.
|
274
|
-
janito-3.14.
|
269
|
+
janito-3.14.2.dist-info/licenses/LICENSE,sha256=dXV4fOF2ZErugtN8l_Nrj5tsRTYgtjE3cgiya0UfBio,11356
|
270
|
+
janito-3.14.2.dist-info/METADATA,sha256=BAWSZ472qW9QqYe-C1VIpZLN7SJqN53F91dYFzgJ8To,2286
|
271
|
+
janito-3.14.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
272
|
+
janito-3.14.2.dist-info/entry_points.txt,sha256=wIo5zZxbmu4fC-ZMrsKD0T0vq7IqkOOLYhrqRGypkx4,48
|
273
|
+
janito-3.14.2.dist-info/top_level.txt,sha256=m0NaVCq0-ivxbazE2-ND0EA9Hmuijj_OGkmCbnBcCig,7
|
274
|
+
janito-3.14.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|