Metadata-Version: 2.4
Name: airgptx
Version: 0.1.0
Summary: AirGPTX Python package with the bundled AirSim client APIs.
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: backports.ssl-match-hostname
Requires-Dist: msgpack-rpc-python
Requires-Dist: numpy
Requires-Dist: openai
Requires-Dist: opencv-contrib-python

# AirGPTX

AirGPTX packages the AirSim Python client and an OpenAI-compatible SDK for calling online LLMs through the AirGPTX relay service.

## Install

```bash
pip install airgptx
```

## AirSim API

```python
import airgptx.airsim as airsim

client = airsim.MultirotorClient()
client.confirmConnection()
```

## LLM relay SDK

```python
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:

```bash
export AIRGPTX_API_KEY="YOUR_AIRGPTX_API_KEY"
export AIRGPTX_BASE_URL="https://api.airgptx.com/v1"
export AIRGPTX_MODEL="airgptx-default"
```

## AirSim agent

```python
from airgptx import AirSimAgent

agent = AirSimAgent(api_key="YOUR_AIRGPTX_API_KEY")
python_code = agent.process("起飞")
print(python_code)
```
