deeplin
Deep Learning Toolbox for LinXueyuan
Hexin Server
启动 FastAPI 服务器以代理 OpenAI API 并使用 hexin_engine 后端处理请求。
python -m deeplin.inference_engine.hexin_server
python -m deeplin.inference_engine.hexin_server --host 0.0.0.0 --port 8777
服务器使用固定的 API key 进行认证:
from openai import OpenAI
OPENAI_API_KEY="sk-deeplin-fastapi-proxy-key-12345"
OPENAI_BASE_URL="http://localhost:8777/v1"
client = OpenAI(
api_key=OPENAI_API_KEY,
base_url=OPENAI_BASE_URL,
)
messages = [
{"role": "user", "content": "Hello!"},
]
response = client.chat.completions.create(
model="gpt-4o",
messages=messages,
)
print(response.choices[0].message.content)
Metadata
Release files for deeplin 0.1.44
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deeplin-0.1.44.tar.gz | 18.5 kB | Without provenance | Details for deeplin-0.1.44.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deeplin-0.1.44-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for deeplin-0.1.44-py2.py3-none-any.whl |
Total release size: 42.7 kB
Release files / deeplin-0.1.44.tar.gz
| Download URL | deeplin-0.1.44.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f2e0bb1ec0dd16d05f8a049962546cd7767813bacce0bb3503e030d443713f4
|
|
BLAKE2b-256 checksum How to use checksums |
55ab0f56adef13ed3d442d409f4a14be0cdf5c791653e5a162c769531f213163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
|
Release files / deeplin-0.1.44-py2.py3-none-any.whl
| Download URL | deeplin-0.1.44-py2.py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7eaa9a7604f3000e275e59f1f21b86de30796dca8a33056c84e5e6749cda51d8
|
|
BLAKE2b-256 checksum How to use checksums |
52f67389aa38f019dc63d71acc669da5874dae9be62f4c45b140769750bfa3fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
|
Security for deeplin 0.1.44
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.