impossibl 0.0.1
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.
- package/README.md +54 -0
- package/index.js +2 -0
- package/package.json +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# impossibl
|
|
2
|
+
|
|
3
|
+
Impossibl is an AI gateway with self-serve inference.
|
|
4
|
+
|
|
5
|
+
Build with models from OpenAI, Anthropic, Google, and xAI through one
|
|
6
|
+
OpenAI-compatible API. Change the model ID to try another provider, while
|
|
7
|
+
keeping the same integration.
|
|
8
|
+
|
|
9
|
+
[Impossibl](https://impossibl.com) brings your models together with one API key,
|
|
10
|
+
unified usage and billing, and automatic provider fallbacks. Connect your existing
|
|
11
|
+
OpenAI SDK to `https://api.impossibl.com/v1` to get started.
|
|
12
|
+
|
|
13
|
+
Explore the API at [impossibl.com](https://impossibl.com).
|
|
14
|
+
|
|
15
|
+
## Packages
|
|
16
|
+
|
|
17
|
+
The Python package is a small client for the hosted API. It configures the
|
|
18
|
+
OpenAI Python SDK with Impossibl's endpoint and your `IMPOSSIBL_API_KEY`.
|
|
19
|
+
See [Python usage](PYTHON.md) for installation and examples.
|
|
20
|
+
|
|
21
|
+
The npm package is still a placeholder with no functionality.
|
|
22
|
+
|
|
23
|
+
## Publishing
|
|
24
|
+
|
|
25
|
+
Both packages use version `0.0.1`. Update `package.json`, `pyproject.toml`, and
|
|
26
|
+
`src/impossibl/__init__.py` together for future releases.
|
|
27
|
+
|
|
28
|
+
### npm
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm login
|
|
32
|
+
npm publish --access public
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### PyPI
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
python3 -m venv .venv
|
|
39
|
+
.venv/bin/python -m pip install build twine
|
|
40
|
+
.venv/bin/python -m build
|
|
41
|
+
.venv/bin/python -m twine check dist/*
|
|
42
|
+
.venv/bin/python -m twine upload dist/*
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Publishing requires an available package name and registry credentials.
|
|
46
|
+
|
|
47
|
+
## Python verification
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
.venv/bin/python -m pip install -e .
|
|
51
|
+
.venv/bin/python -m unittest discover -s tests
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Tests use mocked HTTP requests; they do not call the live API or spend credits.
|
package/index.js
ADDED