AirGPTX
AirGPTX packages the AirSim Python client and an OpenAI-compatible SDK for calling online LLMs through the AirGPTX relay service.
Install
pip install airgptx
AirSim API
import airgptx.airsim as airsim
client = airsim.MultirotorClient()
client.confirmConnection()
LLM relay SDK
from airgptx import AirGPTX
sdk = AirGPTX(api_key="YOUR_AIRGPTX_API_KEY")
answer = sdk.ask("Say hello")
print(answer)
You can also configure the SDK with environment variables:
export AIRGPTX_API_KEY="YOUR_AIRGPTX_API_KEY"
export AIRGPTX_BASE_URL="https://api.airgptx.com/v1"
export AIRGPTX_MODEL="airgptx-default"
AirSim agent
from airgptx import AirSimAgent
agent = AirSimAgent(api_key="YOUR_AIRGPTX_API_KEY")
python_code = agent.process("起飞")
print(python_code)
Metadata
Release files for airgptx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| airgptx-0.1.0.tar.gz | 25.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airgptx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.7 kB
Release files / airgptx-0.1.0.tar.gz
| Download URL | airgptx-0.1.0.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce9c751e429561293666ddae5ae9ad9bca2bbd87f47101c2d9c3cd4c679ae3ca
|
|
BLAKE2b-256 checksum How to use checksums |
60ccac96435101f15c85d23b59ddbcc29fcc9f670aaefd5b932399fff0384a21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / airgptx-0.1.0-py3-none-any.whl
| Download URL | airgptx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d06309e0b388247523b953fef79e40098d8c9a48b10e026fb7642d6ecb6a3c98
|
|
BLAKE2b-256 checksum How to use checksums |
cb1992c8728288ca3165b0f70e143358f0eae2778885fc3713e0b15e74e379c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|