deep learning toolbox for LinXueyuan
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deeplin-0.1.42.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deeplin-0.1.42.tar.gz.
File metadata
- Download URL: deeplin-0.1.42.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb941fd4e36d98b368ebc1925304fc15f8496b4d053b7f364f54bb5aff10f86
|
|
| MD5 |
cc039f239f75873ab2f5f14522b52df0
|
|
| BLAKE2b-256 |
3ad844f41fde96396d415617a2852f639c3ece65b5f0805c678a8c8f8499e066
|
File details
Details for the file deeplin-0.1.42-py2.py3-none-any.whl.
File metadata
- Download URL: deeplin-0.1.42-py2.py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fad6bf409f8e1e5556daaad0bbaae8e2439285b7ec3099d9bf34800916f737b
|
|
| MD5 |
93e208c21604de9336bfb7cdcb6d732a
|
|
| BLAKE2b-256 |
0731632ccf810a6a9324c4275883712f1c3943fe7e4b735b81747efa57e97604
|