Skip to main content

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.

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 before making billed calls.

Metadata

Release files for modelfold 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelfold 0.1.0
File Size Uploaded Provenance Actions
modelfold-0.1.0.tar.gz 2.7 kB Without provenance Details for modelfold-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modelfold 0.1.0
File Interpreter ABI Platform Actions
modelfold-0.1.0-py3-none-any.whl Python 3 none any Details for modelfold-0.1.0-py3-none-any.whl

Total release size: 5.7 kB

Release files / modelfold-0.1.0.tar.gz

Download URL modelfold-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96c09013e553c1a7d84980101b812d863c9e0fde6051a9f5f7d1c4a743f8c127
BLAKE2b-256 checksum
How to use checksums
e298b681af0b31ca5023a27ac7aee7a09a5f8271e6b3027cecd53f29c4e33915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / modelfold-0.1.0-py3-none-any.whl

Download URL modelfold-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aef79489ff4f3eafd1467bc60c2a4359c9b43770122299bf25e0fadb94c181ca
BLAKE2b-256 checksum
How to use checksums
ac7a30ccadefaaf7ef339846f46cfbf801e3b0de538e424347870c7bc5f21676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for modelfold 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page