Metadata-Version: 2.5
Name: uplinkswitch-sdk
Version: 0.1.0
Summary: UplinkSwitch typed Python SDK with model-id autocomplete and cost estimates
Project-URL: Homepage, https://uplinkswitch.ai
Project-URL: Repository, https://gitlab.com/uplinkswitch/uplinkswitch-sdk
Author: Uplink Switch LLC
License-Expression: MIT
License-File: LICENSE
Keywords: ai,llm,openai-compatible,sdk,uplinkswitch
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# uplinkswitch-sdk

Typed Python SDK for UplinkSwitch. No dependencies.

```python
from uplinkswitch_sdk import UplinkSwitch, estimate_cost

client = UplinkSwitch()  # reads UPLINKSWITCH_API_KEY
r = client.chat.completions.create(model="abliterated-model", messages=[{"role": "user", "content": "hi"}])
print(estimate_cost(r), r["_uplink"]["charge_usd"])
```

Model list and prices: https://uplinkswitch.ai/models
