Skip to main content

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airgptx-0.1.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airgptx-0.1.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file airgptx-0.1.0.tar.gz.

File metadata

  • Download URL: airgptx-0.1.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for airgptx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce9c751e429561293666ddae5ae9ad9bca2bbd87f47101c2d9c3cd4c679ae3ca
MD5 299c40165ea7766d1b99d2618def17cb
BLAKE2b-256 60ccac96435101f15c85d23b59ddbcc29fcc9f670aaefd5b932399fff0384a21

See more details on using hashes here.

File details

Details for the file airgptx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: airgptx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for airgptx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d06309e0b388247523b953fef79e40098d8c9a48b10e026fb7642d6ecb6a3c98
MD5 7f3dd65894b0ef79fd35a34708d929da
BLAKE2b-256 cb1992c8728288ca3165b0f70e143358f0eae2778885fc3713e0b15e74e379c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page