deepanything 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- deepanything/Server/__init__.py +3 -0
- deepanything/__init__.py +2 -0
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/METADATA +20 -3
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/RECORD +8 -8
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/LICENSE +0 -0
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/WHEEL +0 -0
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/entry_points.txt +0 -0
- {deepanything-0.1.0.dist-info → deepanything-0.1.1.dist-info}/top_level.txt +0 -0
deepanything/Server/__init__.py
CHANGED
deepanything/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: deepanything
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: DeepAnything is a project that provides DeepSeek R1's deep thinking capabilities for various large language models (LLMs).
|
5
5
|
Author: Junity
|
6
6
|
Author-email: 1727636624@qq.com
|
@@ -9,6 +9,12 @@ Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
10
10
|
Description-Content-Type: text/markdown
|
11
11
|
License-File: LICENSE
|
12
|
+
Requires-Dist: openai
|
13
|
+
Requires-Dist: uvicorn
|
14
|
+
Requires-Dist: attrs
|
15
|
+
Requires-Dist: fastapi
|
16
|
+
Requires-Dist: pydantic
|
17
|
+
Requires-Dist: setuptools
|
12
18
|
|
13
19
|
# DeepAnything
|
14
20
|
|
@@ -28,6 +34,7 @@ DeepAnything is a project that provides DeepSeek R1's deep thinking capabilities
|
|
28
34
|
## Installation Guide
|
29
35
|
|
30
36
|
Install via pip:
|
37
|
+
|
31
38
|
```bash
|
32
39
|
pip install deepanything
|
33
40
|
```
|
@@ -35,6 +42,7 @@ pip install deepanything
|
|
35
42
|
## Quick Start
|
36
43
|
|
37
44
|
### 1. Integrate into Code
|
45
|
+
|
38
46
|
#### Chat Completion
|
39
47
|
|
40
48
|
```python
|
@@ -72,6 +80,7 @@ completions = da_client.chat_completion(
|
|
72
80
|
```
|
73
81
|
|
74
82
|
#### Streaming Call
|
83
|
+
|
75
84
|
```python
|
76
85
|
stream = da_client.chat_completion(
|
77
86
|
messages=[
|
@@ -91,6 +100,7 @@ for chunk in stream:
|
|
91
100
|
```
|
92
101
|
|
93
102
|
#### Asynchronous Usage
|
103
|
+
|
94
104
|
```python
|
95
105
|
from deepanything.ReasonClient import AsyncDeepseekReasonClient
|
96
106
|
from deepanything.ResponseClient import AsyncOpenaiResponseClient
|
@@ -129,10 +139,13 @@ async def main():
|
|
129
139
|
|
130
140
|
asyncio.run(main())
|
131
141
|
```
|
142
|
+
|
132
143
|
### 2. Use as a Server
|
144
|
+
|
133
145
|
```bash
|
134
146
|
python -m deepanything --host host --port port --config config.json
|
135
147
|
```
|
148
|
+
|
136
149
|
| Parameter | Description |
|
137
150
|
| --- |----------------|
|
138
151
|
| --host | Server listening address, will override the setting in config.json |
|
@@ -140,6 +153,7 @@ asyncio.run(main())
|
|
140
153
|
| --config | Configuration file path |
|
141
154
|
|
142
155
|
#### Configuration File Format
|
156
|
+
|
143
157
|
Below is an example of a configuration file:
|
144
158
|
|
145
159
|
```json
|
@@ -176,16 +190,19 @@ Below is an example of a configuration file:
|
|
176
190
|
]
|
177
191
|
}
|
178
192
|
```
|
179
|
-
|
193
|
+
|
194
|
+
#### **Detailed Explanation**
|
180
195
|
|
181
196
|
- reason_clients: Configuration for thinking models, currently supports deepseek and openai types. When the type is openai, deepanything directly uses the model's output as the thinking content, and it is recommended to use qwq-32b in this case.
|
182
197
|
- response_clients: Configuration for response models, currently only supports the openai type.
|
183
198
|
- api_keys: API keys for user authentication. When left blank or an empty list, the server does not use API keys for authentication.
|
184
199
|
|
185
200
|
## License
|
201
|
+
|
186
202
|
This project is licensed under the [MIT License](LICENSE)
|
187
203
|
|
188
204
|
## Contact Us
|
205
|
+
|
189
206
|
Email: 1737636624@qq.com
|
190
207
|
|
191
|
-
GitHub Issues: https://github.com/
|
208
|
+
GitHub Issues: [https://github.com/junity233/deep-anything/issues](https://github.com/junity233/deep-anything/issues)
|
@@ -3,14 +3,14 @@ deepanything/ReasonClient.py,sha256=8uV2wuDUmUP7ICCOfClVm5J2gBcdQJwI5F_-ftxS2Ho,
|
|
3
3
|
deepanything/ResponseClient.py,sha256=oWPIQXknm7QEkG5Ysx9ejKUyISd0cHZF-HVG0fersOQ,2871
|
4
4
|
deepanything/Stream.py,sha256=8ESR8ttjyPZ-uXPDENsVWUzaL34_GT2OZBJ0PWu7vsA,1578
|
5
5
|
deepanything/Utility.py,sha256=HmiXU5X1eQO9iL292lfFA3dbGVjEPIM4Ayvw8Z8y2lk,6677
|
6
|
-
deepanything/__init__.py,sha256=
|
6
|
+
deepanything/__init__.py,sha256=_2RolcKcpxmW0dmtiQpXlvgxe5dvqx90Yg_Q_oVLVZQ,175
|
7
7
|
deepanything/__main__.py,sha256=x9LQGBlVnyML4yJ6Y3Rrt1pZ4xkLu0uZ569wKqwmpJQ,941
|
8
8
|
deepanything/Server/Server.py,sha256=rrTVahuDe0U1U6V6IfWJ7p5c-LbOQ15T42lymbwzna4,7211
|
9
9
|
deepanything/Server/Types.py,sha256=iN3X2QDnOyKwpuifUymeu1qg4OZ8uu4QG9ThttZFSDQ,390
|
10
|
-
deepanything/Server/__init__.py,sha256=
|
11
|
-
deepanything-0.1.
|
12
|
-
deepanything-0.1.
|
13
|
-
deepanything-0.1.
|
14
|
-
deepanything-0.1.
|
15
|
-
deepanything-0.1.
|
16
|
-
deepanything-0.1.
|
10
|
+
deepanything/Server/__init__.py,sha256=eIpn6NbNvEg4ST8CuuIuzPT3m_fTlmPC3sikPoPFsYo,92
|
11
|
+
deepanything-0.1.1.dist-info/LICENSE,sha256=JWYd2E-mcNcSYjT5nk4ayM5kkkDq6ZlOxVcYsyqCIwU,1059
|
12
|
+
deepanything-0.1.1.dist-info/METADATA,sha256=nEHVkjQXaTRgvlXh1aw0cc0nj6DgVXz_nqUtja8S_V0,5840
|
13
|
+
deepanything-0.1.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
14
|
+
deepanything-0.1.1.dist-info/entry_points.txt,sha256=UT4gNGx6dJsKBjZIl3VkMekh385O5WMbMidAAla6UB4,60
|
15
|
+
deepanything-0.1.1.dist-info/top_level.txt,sha256=wGeRb__4jEJTclCUl0cxhgubD_Bq-QT38VIH6C4KpzY,13
|
16
|
+
deepanything-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|