Metadata-Version: 2.4
Name: modelfold
Version: 0.1.0
Summary: ModelFold client preset for the OpenAI Python SDK
License-Expression: MIT
Project-URL: Homepage, https://modelfold.ai
Project-URL: Repository, https://github.com/AIModelFold/modelfold-mcp
Keywords: modelfold,openai-compatible,chat,models
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai<3,>=1.55
Dynamic: license-file

# ModelFold Python SDK

This package presets the OpenAI SDK to `https://modelfold.ai/v1` and reads
`MODELFOLD_API_KEY`. It does not use `OPENAI_API_KEY`.

```python
from modelfold import ModelFold

with ModelFold() as client:
    print([model.id for model in client.list_models()])
    completion = client.chat.completions.create(
        model="gpt-4o-mini",
        messages=[{"role": "user", "content": "Say hello."}],
        max_tokens=20,
    )
    print(completion.choices[0].message.content)
```

From a source checkout, `python -m pip install ./python` installs it locally.
See [ModelFold pricing](https://modelfold.ai/pricing) before making billed calls.
