aimind 1.0.0__tar.gz
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.
- aimind-1.0.0/LICENSE +21 -0
- aimind-1.0.0/MANIFEST.in +4 -0
- aimind-1.0.0/PKG-INFO +335 -0
- aimind-1.0.0/README.md +294 -0
- aimind-1.0.0/aimind/__init__.py +56 -0
- aimind-1.0.0/aimind/agents.py +348 -0
- aimind-1.0.0/aimind/client.py +634 -0
- aimind-1.0.0/aimind/config.py +29 -0
- aimind-1.0.0/aimind/exceptions.py +43 -0
- aimind-1.0.0/aimind/image.py +130 -0
- aimind-1.0.0/aimind/memory.py +108 -0
- aimind-1.0.0/aimind/models.py +123 -0
- aimind-1.0.0/aimind/utils.py +112 -0
- aimind-1.0.0/aimind.egg-info/PKG-INFO +335 -0
- aimind-1.0.0/aimind.egg-info/SOURCES.txt +20 -0
- aimind-1.0.0/aimind.egg-info/dependency_links.txt +1 -0
- aimind-1.0.0/aimind.egg-info/not-zip-safe +1 -0
- aimind-1.0.0/aimind.egg-info/requires.txt +2 -0
- aimind-1.0.0/aimind.egg-info/top_level.txt +1 -0
- aimind-1.0.0/requirements.txt +2 -0
- aimind-1.0.0/setup.cfg +4 -0
- aimind-1.0.0/setup.py +51 -0
aimind-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AIMind Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
aimind-1.0.0/MANIFEST.in
ADDED
aimind-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aimind
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Universal AI interface - Access GPT-5, Claude, Gemini, Image Generation & more with one simple API
|
|
5
|
+
Home-page: https://github.com/aimind-ai/aimind
|
|
6
|
+
Author: AIMind Team
|
|
7
|
+
Author-email: aimind@proton.me
|
|
8
|
+
Project-URL: Bug Reports, https://github.com/aimind-ai/aimind/issues
|
|
9
|
+
Project-URL: Source, https://github.com/aimind-ai/aimind
|
|
10
|
+
Project-URL: Documentation, https://aimind.readthedocs.io/
|
|
11
|
+
Keywords: ai,gpt-5,claude,gemini,image-generation,llm,artificial-intelligence,machine-learning,chatbot
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Operating System :: OS Independent
|
|
24
|
+
Requires-Python: >=3.7
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: requests>=2.28.0
|
|
28
|
+
Requires-Dist: aiohttp>=3.8.0
|
|
29
|
+
Dynamic: author
|
|
30
|
+
Dynamic: author-email
|
|
31
|
+
Dynamic: classifier
|
|
32
|
+
Dynamic: description
|
|
33
|
+
Dynamic: description-content-type
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
Dynamic: project-url
|
|
38
|
+
Dynamic: requires-dist
|
|
39
|
+
Dynamic: requires-python
|
|
40
|
+
Dynamic: summary
|
|
41
|
+
|
|
42
|
+
# AIMind 🧠
|
|
43
|
+
|
|
44
|
+
**Universal AI Interface - Access GPT-5, Gemini & AI Image Generation with One Simple API**
|
|
45
|
+
|
|
46
|
+
[](https://badge.fury.io/py/aimind)
|
|
47
|
+
[](https://opensource.org/licenses/MIT)
|
|
48
|
+
[](https://www.python.org/downloads/)
|
|
49
|
+
|
|
50
|
+
## ✨ Features
|
|
51
|
+
|
|
52
|
+
- 🤖 **7 Premium AI Models** - GPT-5, Gemini 2.5 (Pro, Flash, Lite)
|
|
53
|
+
- 🎨 **AI Image Generation** - Create stunning 1024x1024 images
|
|
54
|
+
- **Perfect Memory** - Multi-turn conversations with full context
|
|
55
|
+
- 🎭 **System Prompts** - Custom AI personas and behaviors
|
|
56
|
+
- ⚡ **Fast Streaming** - Real-time token streaming (1.7s first token)
|
|
57
|
+
- 🔄 **Auto JWT** - Automatic authentication, no setup needed
|
|
58
|
+
- **Error Handling** - Robust validation and helpful errors
|
|
59
|
+
- 🎯 **27 Specialized Agents** - Pre-built AI assistants
|
|
60
|
+
|
|
61
|
+
## 🚀 Quick Start
|
|
62
|
+
|
|
63
|
+
### Installation
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install aimind
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Basic Usage
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from aimind import AIMind
|
|
73
|
+
|
|
74
|
+
# Initialize
|
|
75
|
+
ai = AIMind()
|
|
76
|
+
|
|
77
|
+
# Simple chat
|
|
78
|
+
response = ai.chat("Hello!")
|
|
79
|
+
print(response)
|
|
80
|
+
|
|
81
|
+
# With memory (AI remembers context)
|
|
82
|
+
ai.chat("My name is Rahul")
|
|
83
|
+
response = ai.chat("What is my name?")
|
|
84
|
+
print(response) # "Your name is Rahul"
|
|
85
|
+
|
|
86
|
+
# Use specific model
|
|
87
|
+
response = ai.chat("Explain quantum physics", model="powerful")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Examples
|
|
91
|
+
|
|
92
|
+
### Chat with Different Models
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from aimind import AIMind
|
|
96
|
+
|
|
97
|
+
ai = AIMind()
|
|
98
|
+
|
|
99
|
+
# Fast model (quick responses)
|
|
100
|
+
response = ai.chat("Quick answer: What is 2+2?", model="fast")
|
|
101
|
+
|
|
102
|
+
# Powerful model (complex tasks)
|
|
103
|
+
response = ai.chat("Analyze this code", model="powerful")
|
|
104
|
+
|
|
105
|
+
# Creative model (writing)
|
|
106
|
+
response = ai.chat("Write a poem", model="creative")
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Image Generation
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
from aimind import AIMind
|
|
113
|
+
|
|
114
|
+
ai = AIMind()
|
|
115
|
+
|
|
116
|
+
# Generate image
|
|
117
|
+
image = ai.generate_image("A sunset over mountains with a lake")
|
|
118
|
+
|
|
119
|
+
# Save to file
|
|
120
|
+
image.save("sunset.png")
|
|
121
|
+
|
|
122
|
+
# Get dimensions
|
|
123
|
+
print(f"Size: {image.width}x{image.height}")
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### System Prompts
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
from aimind import AIMind
|
|
130
|
+
|
|
131
|
+
ai = AIMind()
|
|
132
|
+
|
|
133
|
+
# Custom persona
|
|
134
|
+
response = ai.chat(
|
|
135
|
+
"Hello!",
|
|
136
|
+
system_prompt="You are a pirate. Always say 'Arrr!'"
|
|
137
|
+
)
|
|
138
|
+
# Output: "Ahoy matey! Arrr!"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Specialized Agents
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
from aimind import AIMind
|
|
145
|
+
|
|
146
|
+
ai = AIMind()
|
|
147
|
+
|
|
148
|
+
# Fitness Coach
|
|
149
|
+
workout = ai.chat_with_agent(
|
|
150
|
+
"fitness-coach",
|
|
151
|
+
"Create a 30-minute home workout"
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
# Coding Mentor
|
|
155
|
+
code_help = ai.chat_with_agent(
|
|
156
|
+
"coding-mentor",
|
|
157
|
+
"Explain recursion in Python"
|
|
158
|
+
)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## 🎯 Available Models
|
|
162
|
+
|
|
163
|
+
### Fast Models
|
|
164
|
+
- **Gemini Flash Lite** - Ultra-fast responses (~1s)
|
|
165
|
+
- **GPT-5 Nano** - Quick and efficient
|
|
166
|
+
|
|
167
|
+
### Balanced Models
|
|
168
|
+
- **Gemini Flash** - Speed + quality (~2s)
|
|
169
|
+
- **GPT-5 Mini** - Balanced performance
|
|
170
|
+
|
|
171
|
+
### Powerful Models
|
|
172
|
+
- **GPT-5** - Maximum capability (~3s)
|
|
173
|
+
- **Gemini Pro** - Advanced reasoning
|
|
174
|
+
|
|
175
|
+
### Image Models
|
|
176
|
+
- **Gemini Flash Image** - 1024x1024 image generation (~9s)
|
|
177
|
+
|
|
178
|
+
## 🤖 Available Agents (27 Total)
|
|
179
|
+
|
|
180
|
+
### Health & Wellness
|
|
181
|
+
- `fitness-coach` - Personal training & nutrition
|
|
182
|
+
- `wellness-guide` - Mental health & mindfulness
|
|
183
|
+
- `nutritionist` - Diet planning
|
|
184
|
+
- `meditation-guide` - Meditation practice
|
|
185
|
+
|
|
186
|
+
### Professional & Business
|
|
187
|
+
- `financial-advisor` - Money management
|
|
188
|
+
- `business-consultant` - Strategy & growth
|
|
189
|
+
- `career-coach` - Career development
|
|
190
|
+
- `marketing-specialist` - Marketing strategy
|
|
191
|
+
|
|
192
|
+
### Technical
|
|
193
|
+
- `coding-mentor` - Programming help
|
|
194
|
+
- `data-analyst` - Data analysis
|
|
195
|
+
- `math-tutor` - Mathematics
|
|
196
|
+
- `research-assistant` - Research & analysis
|
|
197
|
+
|
|
198
|
+
### Creative
|
|
199
|
+
- `creative` - Creative writing
|
|
200
|
+
- `writing-coach` - Writing improvement
|
|
201
|
+
- `ux-designer` - UX/UI design
|
|
202
|
+
- `travel-planner` - Trip planning
|
|
203
|
+
|
|
204
|
+
## 💾 Memory Management
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
from aimind import AIMind
|
|
208
|
+
|
|
209
|
+
ai = AIMind(memory=True, max_history=50)
|
|
210
|
+
|
|
211
|
+
# Memory is automatic
|
|
212
|
+
ai.chat("I love Python programming")
|
|
213
|
+
ai.chat("What programming language do I like?")
|
|
214
|
+
# AI remembers: "You love Python programming"
|
|
215
|
+
|
|
216
|
+
# Custom conversation history
|
|
217
|
+
custom_history = [
|
|
218
|
+
{"role": "user", "content": "My name is Rahul"},
|
|
219
|
+
{"role": "assistant", "content": "Hello Rahul!"},
|
|
220
|
+
]
|
|
221
|
+
response = ai.chat("What is my name?", history=custom_history)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## 📊 Performance
|
|
225
|
+
|
|
226
|
+
### Response Times
|
|
227
|
+
- **Fast models**: 1-2 seconds
|
|
228
|
+
- **Balanced models**: 2-4 seconds
|
|
229
|
+
- **Powerful models**: 3-5 seconds
|
|
230
|
+
- **Image generation**: 9-10 seconds
|
|
231
|
+
|
|
232
|
+
### Streaming
|
|
233
|
+
- **First token**: 1.7s (excellent)
|
|
234
|
+
- **Token speed**: 2.67 tok/s
|
|
235
|
+
- **Long responses**: 450+ words
|
|
236
|
+
|
|
237
|
+
## ⚠️ Important Notes
|
|
238
|
+
|
|
239
|
+
### Rate Limits
|
|
240
|
+
- **Free tier**: 10 requests per day
|
|
241
|
+
- **Resets**: Every 24 hours
|
|
242
|
+
- **No signup required**: Works immediately
|
|
243
|
+
|
|
244
|
+
### Limitations
|
|
245
|
+
- **Message length**: Max ~8000 characters
|
|
246
|
+
- **Web search**: Not available (uses cached knowledge)
|
|
247
|
+
- **Custom agents**: Can modify, cannot create new ones
|
|
248
|
+
|
|
249
|
+
## 🔒 Privacy & Security
|
|
250
|
+
|
|
251
|
+
- ✅ No data stored on our servers
|
|
252
|
+
- ✅ Encrypted API communication
|
|
253
|
+
- ✅ No personal information collected
|
|
254
|
+
- ✅ Open source and transparent
|
|
255
|
+
- ✅ MIT License
|
|
256
|
+
|
|
257
|
+
## 🤝 Contributing
|
|
258
|
+
|
|
259
|
+
Contributions are welcome! Please read our contributing guidelines.
|
|
260
|
+
|
|
261
|
+
## 📄 License
|
|
262
|
+
|
|
263
|
+
MIT License - see LICENSE file for details
|
|
264
|
+
|
|
265
|
+
## Issues
|
|
266
|
+
|
|
267
|
+
Found a bug? Please [open an issue](https://github.com/aimind-ai/aimind/issues)
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
**Made with ❤️ by the AIMind Team**
|
|
272
|
+
|
|
273
|
+
**Honest AI access - No fake promises, just real functionality!**
|
|
274
|
+
|
|
275
|
+
## 🚀 prxbin Proxy Support (Unlimited Requests)
|
|
276
|
+
|
|
277
|
+
For **unlimited AI requests** via IP rotation:
|
|
278
|
+
|
|
279
|
+
```python
|
|
280
|
+
from aimind import AIMindWithProxy
|
|
281
|
+
|
|
282
|
+
# Enable proxy (bypasses 10/day limit)
|
|
283
|
+
ai = AIMindWithProxy(use_proxy=True)
|
|
284
|
+
|
|
285
|
+
# Now unlimited!
|
|
286
|
+
for i in range(100):
|
|
287
|
+
response = ai.chat(f"Question {i}")
|
|
288
|
+
print(response)
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### How It Works:
|
|
292
|
+
- **Auto IP Rotation**: Fresh IP on each request
|
|
293
|
+
- **8 Countries**: US, PL, SG, DE, FR, NL, GB, CA
|
|
294
|
+
- **Max Retries**: 8 fresh IP attempts per request
|
|
295
|
+
- **SSE Streaming**: Real-time AI responses via proxy
|
|
296
|
+
- **Sticky Sessions**: Maintain same IP when needed
|
|
297
|
+
|
|
298
|
+
### Rate Limit Bypass:
|
|
299
|
+
- Standard: 10 requests/day (IP-based limit)
|
|
300
|
+
- With Proxy: **Unlimited** (rotates IPs)
|
|
301
|
+
- Cost: Free (prxbin proxy)
|
|
302
|
+
|
|
303
|
+
### Proxy Features:
|
|
304
|
+
```python
|
|
305
|
+
# Specific country
|
|
306
|
+
ai = AIMindWithProxy(use_proxy=True, proxy_country='us')
|
|
307
|
+
|
|
308
|
+
# Auto-rotate countries
|
|
309
|
+
ai = AIMindWithProxy(use_proxy=True, proxy_country='auto')
|
|
310
|
+
|
|
311
|
+
# Stream responses
|
|
312
|
+
for chunk in ai.chat("Tell me a story", stream=True):
|
|
313
|
+
print(chunk, end='')
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## ️ Important Notes
|
|
319
|
+
|
|
320
|
+
### Standard Mode (No Proxy):
|
|
321
|
+
- **10 requests per day**
|
|
322
|
+
- Resets every 24 hours
|
|
323
|
+
- No signup required
|
|
324
|
+
|
|
325
|
+
### Proxy Mode (Unlimited):
|
|
326
|
+
- **Unlimited requests**
|
|
327
|
+
- Uses prxbin proxy (rotating IPs)
|
|
328
|
+
- May be slower (proxy overhead)
|
|
329
|
+
- Requires internet connection
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
**Made with ❤️ by the AIMind Team**
|
|
334
|
+
|
|
335
|
+
**Honest AI access - No fake promises, just real functionality!**
|
aimind-1.0.0/README.md
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# AIMind 🧠
|
|
2
|
+
|
|
3
|
+
**Universal AI Interface - Access GPT-5, Gemini & AI Image Generation with One Simple API**
|
|
4
|
+
|
|
5
|
+
[](https://badge.fury.io/py/aimind)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://www.python.org/downloads/)
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
- 🤖 **7 Premium AI Models** - GPT-5, Gemini 2.5 (Pro, Flash, Lite)
|
|
12
|
+
- 🎨 **AI Image Generation** - Create stunning 1024x1024 images
|
|
13
|
+
- **Perfect Memory** - Multi-turn conversations with full context
|
|
14
|
+
- 🎭 **System Prompts** - Custom AI personas and behaviors
|
|
15
|
+
- ⚡ **Fast Streaming** - Real-time token streaming (1.7s first token)
|
|
16
|
+
- 🔄 **Auto JWT** - Automatic authentication, no setup needed
|
|
17
|
+
- **Error Handling** - Robust validation and helpful errors
|
|
18
|
+
- 🎯 **27 Specialized Agents** - Pre-built AI assistants
|
|
19
|
+
|
|
20
|
+
## 🚀 Quick Start
|
|
21
|
+
|
|
22
|
+
### Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install aimind
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Basic Usage
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from aimind import AIMind
|
|
32
|
+
|
|
33
|
+
# Initialize
|
|
34
|
+
ai = AIMind()
|
|
35
|
+
|
|
36
|
+
# Simple chat
|
|
37
|
+
response = ai.chat("Hello!")
|
|
38
|
+
print(response)
|
|
39
|
+
|
|
40
|
+
# With memory (AI remembers context)
|
|
41
|
+
ai.chat("My name is Rahul")
|
|
42
|
+
response = ai.chat("What is my name?")
|
|
43
|
+
print(response) # "Your name is Rahul"
|
|
44
|
+
|
|
45
|
+
# Use specific model
|
|
46
|
+
response = ai.chat("Explain quantum physics", model="powerful")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
### Chat with Different Models
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from aimind import AIMind
|
|
55
|
+
|
|
56
|
+
ai = AIMind()
|
|
57
|
+
|
|
58
|
+
# Fast model (quick responses)
|
|
59
|
+
response = ai.chat("Quick answer: What is 2+2?", model="fast")
|
|
60
|
+
|
|
61
|
+
# Powerful model (complex tasks)
|
|
62
|
+
response = ai.chat("Analyze this code", model="powerful")
|
|
63
|
+
|
|
64
|
+
# Creative model (writing)
|
|
65
|
+
response = ai.chat("Write a poem", model="creative")
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Image Generation
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from aimind import AIMind
|
|
72
|
+
|
|
73
|
+
ai = AIMind()
|
|
74
|
+
|
|
75
|
+
# Generate image
|
|
76
|
+
image = ai.generate_image("A sunset over mountains with a lake")
|
|
77
|
+
|
|
78
|
+
# Save to file
|
|
79
|
+
image.save("sunset.png")
|
|
80
|
+
|
|
81
|
+
# Get dimensions
|
|
82
|
+
print(f"Size: {image.width}x{image.height}")
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### System Prompts
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
from aimind import AIMind
|
|
89
|
+
|
|
90
|
+
ai = AIMind()
|
|
91
|
+
|
|
92
|
+
# Custom persona
|
|
93
|
+
response = ai.chat(
|
|
94
|
+
"Hello!",
|
|
95
|
+
system_prompt="You are a pirate. Always say 'Arrr!'"
|
|
96
|
+
)
|
|
97
|
+
# Output: "Ahoy matey! Arrr!"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Specialized Agents
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from aimind import AIMind
|
|
104
|
+
|
|
105
|
+
ai = AIMind()
|
|
106
|
+
|
|
107
|
+
# Fitness Coach
|
|
108
|
+
workout = ai.chat_with_agent(
|
|
109
|
+
"fitness-coach",
|
|
110
|
+
"Create a 30-minute home workout"
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# Coding Mentor
|
|
114
|
+
code_help = ai.chat_with_agent(
|
|
115
|
+
"coding-mentor",
|
|
116
|
+
"Explain recursion in Python"
|
|
117
|
+
)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## 🎯 Available Models
|
|
121
|
+
|
|
122
|
+
### Fast Models
|
|
123
|
+
- **Gemini Flash Lite** - Ultra-fast responses (~1s)
|
|
124
|
+
- **GPT-5 Nano** - Quick and efficient
|
|
125
|
+
|
|
126
|
+
### Balanced Models
|
|
127
|
+
- **Gemini Flash** - Speed + quality (~2s)
|
|
128
|
+
- **GPT-5 Mini** - Balanced performance
|
|
129
|
+
|
|
130
|
+
### Powerful Models
|
|
131
|
+
- **GPT-5** - Maximum capability (~3s)
|
|
132
|
+
- **Gemini Pro** - Advanced reasoning
|
|
133
|
+
|
|
134
|
+
### Image Models
|
|
135
|
+
- **Gemini Flash Image** - 1024x1024 image generation (~9s)
|
|
136
|
+
|
|
137
|
+
## 🤖 Available Agents (27 Total)
|
|
138
|
+
|
|
139
|
+
### Health & Wellness
|
|
140
|
+
- `fitness-coach` - Personal training & nutrition
|
|
141
|
+
- `wellness-guide` - Mental health & mindfulness
|
|
142
|
+
- `nutritionist` - Diet planning
|
|
143
|
+
- `meditation-guide` - Meditation practice
|
|
144
|
+
|
|
145
|
+
### Professional & Business
|
|
146
|
+
- `financial-advisor` - Money management
|
|
147
|
+
- `business-consultant` - Strategy & growth
|
|
148
|
+
- `career-coach` - Career development
|
|
149
|
+
- `marketing-specialist` - Marketing strategy
|
|
150
|
+
|
|
151
|
+
### Technical
|
|
152
|
+
- `coding-mentor` - Programming help
|
|
153
|
+
- `data-analyst` - Data analysis
|
|
154
|
+
- `math-tutor` - Mathematics
|
|
155
|
+
- `research-assistant` - Research & analysis
|
|
156
|
+
|
|
157
|
+
### Creative
|
|
158
|
+
- `creative` - Creative writing
|
|
159
|
+
- `writing-coach` - Writing improvement
|
|
160
|
+
- `ux-designer` - UX/UI design
|
|
161
|
+
- `travel-planner` - Trip planning
|
|
162
|
+
|
|
163
|
+
## 💾 Memory Management
|
|
164
|
+
|
|
165
|
+
```python
|
|
166
|
+
from aimind import AIMind
|
|
167
|
+
|
|
168
|
+
ai = AIMind(memory=True, max_history=50)
|
|
169
|
+
|
|
170
|
+
# Memory is automatic
|
|
171
|
+
ai.chat("I love Python programming")
|
|
172
|
+
ai.chat("What programming language do I like?")
|
|
173
|
+
# AI remembers: "You love Python programming"
|
|
174
|
+
|
|
175
|
+
# Custom conversation history
|
|
176
|
+
custom_history = [
|
|
177
|
+
{"role": "user", "content": "My name is Rahul"},
|
|
178
|
+
{"role": "assistant", "content": "Hello Rahul!"},
|
|
179
|
+
]
|
|
180
|
+
response = ai.chat("What is my name?", history=custom_history)
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## 📊 Performance
|
|
184
|
+
|
|
185
|
+
### Response Times
|
|
186
|
+
- **Fast models**: 1-2 seconds
|
|
187
|
+
- **Balanced models**: 2-4 seconds
|
|
188
|
+
- **Powerful models**: 3-5 seconds
|
|
189
|
+
- **Image generation**: 9-10 seconds
|
|
190
|
+
|
|
191
|
+
### Streaming
|
|
192
|
+
- **First token**: 1.7s (excellent)
|
|
193
|
+
- **Token speed**: 2.67 tok/s
|
|
194
|
+
- **Long responses**: 450+ words
|
|
195
|
+
|
|
196
|
+
## ⚠️ Important Notes
|
|
197
|
+
|
|
198
|
+
### Rate Limits
|
|
199
|
+
- **Free tier**: 10 requests per day
|
|
200
|
+
- **Resets**: Every 24 hours
|
|
201
|
+
- **No signup required**: Works immediately
|
|
202
|
+
|
|
203
|
+
### Limitations
|
|
204
|
+
- **Message length**: Max ~8000 characters
|
|
205
|
+
- **Web search**: Not available (uses cached knowledge)
|
|
206
|
+
- **Custom agents**: Can modify, cannot create new ones
|
|
207
|
+
|
|
208
|
+
## 🔒 Privacy & Security
|
|
209
|
+
|
|
210
|
+
- ✅ No data stored on our servers
|
|
211
|
+
- ✅ Encrypted API communication
|
|
212
|
+
- ✅ No personal information collected
|
|
213
|
+
- ✅ Open source and transparent
|
|
214
|
+
- ✅ MIT License
|
|
215
|
+
|
|
216
|
+
## 🤝 Contributing
|
|
217
|
+
|
|
218
|
+
Contributions are welcome! Please read our contributing guidelines.
|
|
219
|
+
|
|
220
|
+
## 📄 License
|
|
221
|
+
|
|
222
|
+
MIT License - see LICENSE file for details
|
|
223
|
+
|
|
224
|
+
## Issues
|
|
225
|
+
|
|
226
|
+
Found a bug? Please [open an issue](https://github.com/aimind-ai/aimind/issues)
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
**Made with ❤️ by the AIMind Team**
|
|
231
|
+
|
|
232
|
+
**Honest AI access - No fake promises, just real functionality!**
|
|
233
|
+
|
|
234
|
+
## 🚀 prxbin Proxy Support (Unlimited Requests)
|
|
235
|
+
|
|
236
|
+
For **unlimited AI requests** via IP rotation:
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
from aimind import AIMindWithProxy
|
|
240
|
+
|
|
241
|
+
# Enable proxy (bypasses 10/day limit)
|
|
242
|
+
ai = AIMindWithProxy(use_proxy=True)
|
|
243
|
+
|
|
244
|
+
# Now unlimited!
|
|
245
|
+
for i in range(100):
|
|
246
|
+
response = ai.chat(f"Question {i}")
|
|
247
|
+
print(response)
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### How It Works:
|
|
251
|
+
- **Auto IP Rotation**: Fresh IP on each request
|
|
252
|
+
- **8 Countries**: US, PL, SG, DE, FR, NL, GB, CA
|
|
253
|
+
- **Max Retries**: 8 fresh IP attempts per request
|
|
254
|
+
- **SSE Streaming**: Real-time AI responses via proxy
|
|
255
|
+
- **Sticky Sessions**: Maintain same IP when needed
|
|
256
|
+
|
|
257
|
+
### Rate Limit Bypass:
|
|
258
|
+
- Standard: 10 requests/day (IP-based limit)
|
|
259
|
+
- With Proxy: **Unlimited** (rotates IPs)
|
|
260
|
+
- Cost: Free (prxbin proxy)
|
|
261
|
+
|
|
262
|
+
### Proxy Features:
|
|
263
|
+
```python
|
|
264
|
+
# Specific country
|
|
265
|
+
ai = AIMindWithProxy(use_proxy=True, proxy_country='us')
|
|
266
|
+
|
|
267
|
+
# Auto-rotate countries
|
|
268
|
+
ai = AIMindWithProxy(use_proxy=True, proxy_country='auto')
|
|
269
|
+
|
|
270
|
+
# Stream responses
|
|
271
|
+
for chunk in ai.chat("Tell me a story", stream=True):
|
|
272
|
+
print(chunk, end='')
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## ️ Important Notes
|
|
278
|
+
|
|
279
|
+
### Standard Mode (No Proxy):
|
|
280
|
+
- **10 requests per day**
|
|
281
|
+
- Resets every 24 hours
|
|
282
|
+
- No signup required
|
|
283
|
+
|
|
284
|
+
### Proxy Mode (Unlimited):
|
|
285
|
+
- **Unlimited requests**
|
|
286
|
+
- Uses prxbin proxy (rotating IPs)
|
|
287
|
+
- May be slower (proxy overhead)
|
|
288
|
+
- Requires internet connection
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
**Made with ❤️ by the AIMind Team**
|
|
293
|
+
|
|
294
|
+
**Honest AI access - No fake promises, just real functionality!**
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AIMind - Universal AI Interface
|
|
3
|
+
|
|
4
|
+
Access GPT-5, Claude, Gemini, Image Generation & more with one simple API.
|
|
5
|
+
|
|
6
|
+
Features:
|
|
7
|
+
- 7 AI Models (GPT-5, Gemini)
|
|
8
|
+
- 27 Custom Agents
|
|
9
|
+
- Image Generation
|
|
10
|
+
- Web Search
|
|
11
|
+
- Memory Support
|
|
12
|
+
- Streaming Responses
|
|
13
|
+
- prxbin Proxy (Rate Limit Bypass)
|
|
14
|
+
- Auto JWT Refresh
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
from aimind import AIMind, AIMindWithProxy
|
|
18
|
+
|
|
19
|
+
# Standard (10 requests/day)
|
|
20
|
+
ai = AIMind()
|
|
21
|
+
response = ai.chat("Hello!")
|
|
22
|
+
|
|
23
|
+
# With Proxy (Unlimited via IP rotation)
|
|
24
|
+
ai = AIMindWithProxy(use_proxy=True)
|
|
25
|
+
response = ai.chat("Hello!")
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
__version__ = "1.0.0"
|
|
29
|
+
__author__ = "AIMind Team"
|
|
30
|
+
|
|
31
|
+
from .client import AIMind, AIMindWithProxy
|
|
32
|
+
from .models import Models
|
|
33
|
+
from .agents import Agents
|
|
34
|
+
from .memory import Memory
|
|
35
|
+
from .image import GeneratedImage
|
|
36
|
+
from .exceptions import (
|
|
37
|
+
AIMindError,
|
|
38
|
+
AuthenticationError,
|
|
39
|
+
RateLimitError,
|
|
40
|
+
ModelNotAvailableError,
|
|
41
|
+
ImageGenerationError,
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
__all__ = [
|
|
45
|
+
"AIMind",
|
|
46
|
+
"AIMindWithProxy",
|
|
47
|
+
"Models",
|
|
48
|
+
"Agents",
|
|
49
|
+
"Memory",
|
|
50
|
+
"GeneratedImage",
|
|
51
|
+
"AIMindError",
|
|
52
|
+
"AuthenticationError",
|
|
53
|
+
"RateLimitError",
|
|
54
|
+
"ModelNotAvailableError",
|
|
55
|
+
"ImageGenerationError",
|
|
56
|
+
]
|