Metadata-Version: 2.4
Name: modelbridge-python
Version: 1.0.0
Summary: Python SDK for the ModelBridge API — unified access to multiple AI models
License: MIT
Project-URL: Homepage, https://github.com/your-username/model-bridge-sdk-python
Keywords: modelbridge,ai,llm,sdk,openai,claude,anthropic
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27.0

# model-bridge-sdk

Python SDK for the ModelBridge API — unified async access to multiple AI models (Claude, GPT, etc.).

## Installation

```bash
pip install model-bridge-sdk
```

## Quick Start

```python
import asyncio
from model_bridge_sdk import ModelBridge

async def main():
    client = ModelBridge(api_key="your-api-key")

    response = await client.chat.completions.create(
        model="claude-sonnet-4-6",
        messages=[{"role": "user", "content": "Hello!"}],
        max_tokens=200,
    )
    print(response["choices"][0]["message"]["content"])

    await client.close()

asyncio.run(main())
```

## Streaming

```python
response = await client.chat.completions.create(
    model="claude-sonnet-4-6",
    stream=True,
    messages=[{"role": "user", "content": "Hello!"}],
    max_tokens=200,
)
async for chunk in response:
    delta = chunk.get("choices", [{}])[0].get("delta", {})
    print(delta.get("content") or "", end="", flush=True)
```

## License

MIT
