aiwave 0.1.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.
- aiwave/__init__.py +5 -0
- aiwave/client.py +28 -0
- aiwave-0.1.0.dist-info/METADATA +96 -0
- aiwave-0.1.0.dist-info/RECORD +7 -0
- aiwave-0.1.0.dist-info/WHEEL +5 -0
- aiwave-0.1.0.dist-info/licenses/LICENSE +15 -0
- aiwave-0.1.0.dist-info/top_level.txt +1 -0
aiwave/__init__.py
ADDED
aiwave/client.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""AIWave Client — Drop-in OpenAI compatible client.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
from aiwave import AIWave
|
|
5
|
+
client = AIWave(api_key="sk-your-key")
|
|
6
|
+
|
|
7
|
+
Get your API key at: https://aiwave.live
|
|
8
|
+
"""
|
|
9
|
+
import os
|
|
10
|
+
from openai import OpenAI
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AIWave(OpenAI):
|
|
14
|
+
"""AIWave API client, fully compatible with OpenAI SDK."""
|
|
15
|
+
|
|
16
|
+
DEFAULT_BASE_URL = "https://aiwave.live/v1"
|
|
17
|
+
|
|
18
|
+
def __init__(self, api_key=None, base_url=None, **kwargs):
|
|
19
|
+
api_key = api_key or os.environ.get("AIWAVE_API_KEY") or os.environ.get("OPENAI_API_KEY")
|
|
20
|
+
if not api_key:
|
|
21
|
+
raise ValueError(
|
|
22
|
+
"API key required. Get one at https://aiwave.live or set AIWAVE_API_KEY env var."
|
|
23
|
+
)
|
|
24
|
+
super().__init__(
|
|
25
|
+
api_key=api_key,
|
|
26
|
+
base_url=base_url or self.DEFAULT_BASE_URL,
|
|
27
|
+
**kwargs
|
|
28
|
+
)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aiwave
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AIWave API — One API key for 50+ Chinese AI models (DeepSeek, GLM, Kimi, etc.), OpenAI compatible
|
|
5
|
+
Home-page: https://aiwave.live
|
|
6
|
+
Author: AIWave
|
|
7
|
+
Author-email: support@aiwave.live
|
|
8
|
+
Keywords: ai,llm,deepseek,glm,kimi,openai,api,chinese-ai,aiwave
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: openai>=1.0.0
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: keywords
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
34
|
+
|
|
35
|
+
# AIWave Python SDK
|
|
36
|
+
|
|
37
|
+
**One API key for 50+ Chinese AI models — OpenAI compatible, zero code changes.**
|
|
38
|
+
|
|
39
|
+
[](LICENSE)
|
|
40
|
+
[](https://python.org)
|
|
41
|
+
|
|
42
|
+
## Supported Models
|
|
43
|
+
|
|
44
|
+
- **DeepSeek**: V4 Pro, V3, R1 (Reasoning)
|
|
45
|
+
- **GLM**: GLM-5.1, GLM-5, GLM-4-Flash
|
|
46
|
+
- **Kimi**: Kimi VL (Vision), Kimi Thinking
|
|
47
|
+
- **ERNIE**: ERNIE 4.5, ERNIE Speed
|
|
48
|
+
- **Qwen**: Qwen 3, Qwen 3 VL
|
|
49
|
+
- *50+ more models*
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pip install aiwave
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Quick Start
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from aiwave import AIWave
|
|
61
|
+
|
|
62
|
+
client = AIWave(api_key="sk-your-key-here")
|
|
63
|
+
|
|
64
|
+
response = client.chat.completions.create(
|
|
65
|
+
model="deepseek-chat",
|
|
66
|
+
messages=[{"role": "user", "content": "Explain quantum computing in 3 sentences"}]
|
|
67
|
+
)
|
|
68
|
+
print(response.choices[0].message.content)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Drop-in OpenAI Replacement
|
|
72
|
+
|
|
73
|
+
Already using the OpenAI SDK? Just swap the base URL:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from openai import OpenAI
|
|
77
|
+
|
|
78
|
+
client = OpenAI(
|
|
79
|
+
api_key="sk-your-key-here",
|
|
80
|
+
base_url="https://aiwave.live/v1"
|
|
81
|
+
)
|
|
82
|
+
# Everything else stays the same
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Why AIWave?
|
|
86
|
+
|
|
87
|
+
- **One API key** for 50+ models — no per-model registration
|
|
88
|
+
- **Pay-as-you-go** — only pay what you use, no minimum deposit
|
|
89
|
+
- **Start free** — free credits on signup
|
|
90
|
+
- **OpenAI compatible** — works with your existing code and tools
|
|
91
|
+
|
|
92
|
+
**[Get your API key →](https://aiwave.live)**
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
MIT — [AIWave](https://aiwave.live)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
aiwave/__init__.py,sha256=y-lwOWRQGof6CSiFPc4uslUxZS6zSN0_L1oRy5HrV84,155
|
|
2
|
+
aiwave/client.py,sha256=CaN_jOO6MkjNa6MK-AqToOCB3iQu7_MGG4MoP3DAnYg,852
|
|
3
|
+
aiwave-0.1.0.dist-info/licenses/LICENSE,sha256=ryIyR3o4jJShYGo6LVdwslHaTTKsJuDYvf6tpSbFCVw,681
|
|
4
|
+
aiwave-0.1.0.dist-info/METADATA,sha256=q3MUGgFb52-qvbtNLMDgjFUdfBmw2CBfeYEMsIXJNIU,2718
|
|
5
|
+
aiwave-0.1.0.dist-info/WHEEL,sha256=YLJXdYXQ2FQ0Uqn2J-6iEIC-3iOey8lH3xCtvFLkd8Q,91
|
|
6
|
+
aiwave-0.1.0.dist-info/top_level.txt,sha256=RiEMvHGB69Wpbjty1DsQPI-zNc6ATYadLBGuqz4-Umc,7
|
|
7
|
+
aiwave-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AIWave
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aiwave
|