superduper_openai
Superduper allows users to work with openai API models.
Installation
pip install superduper_openai
API
| Class | Description |
|---|---|
superduper_openai.model.OpenAIEmbedding |
OpenAI embedding predictor. |
superduper_openai.model.OpenAIChatCompletion |
OpenAI chat completion predictor. |
superduper_openai.model.OpenAIImageCreation |
OpenAI image creation predictor. |
superduper_openai.model.OpenAIImageEdit |
OpenAI image edit predictor. |
superduper_openai.model.OpenAIAudioTranscription |
OpenAI audio transcription predictor. |
superduper_openai.model.OpenAIAudioTranslation |
OpenAI audio translation predictor. |
Examples
OpenAIEmbedding
from superduper_openai.model import OpenAIEmbedding
model = OpenAIEmbedding(identifier='text-embedding-ada-002')
model.predict('Hello, world!')
OpenAIChatCompletion
from superduper_openai.model import OpenAIChatCompletion
model = OpenAIChatCompletion(model='gpt-3.5-turbo', prompt='Hello, {context}')
model.predict('Hello, world!')
OpenAIImageCreation
from superduper_openai.model import OpenAIImageCreation
model = OpenAIImageCreation(
model="dall-e",
prompt="a close up, studio photographic portrait of a {context}",
response_format="url",
)
model.predict("cat")
OpenAIImageEdit
import io
from superduper_openai.model import OpenAIImageEdit
model = OpenAIImageEdit(
model="dall-e",
prompt="A celebration party at the launch of {context}",
response_format="url",
)
with open("test/material/data/rickroll.png", "rb") as f:
buffer = io.BytesIO(f.read())
model.predict(buffer, context=["superduper"])
OpenAIAudioTranscription
import io
from superduper_openai.model import OpenAIAudioTranscription
with open('test/material/data/test.wav', 'rb') as f:
buffer = io.BytesIO(f.read())
buffer.name = 'test.wav'
prompt = (
'i have some advice for you. write all text in lower-case.'
'only make an exception for the following words: {context}'
)
model = OpenAIAudioTranscription(identifier='whisper-1', prompt=prompt)
model.predict(buffer, context=['United States'])
OpenAIAudioTranslation
import io
from superduper_openai.model import OpenAIAudioTranslation
with open('test/material/data/german.wav', 'rb') as f:
buffer = io.BytesIO(f.read())
buffer.name = 'test.wav'
prompt = (
'i have some advice for you. write all text in lower-case.'
'only make an exception for the following words: {context}'
)
e = OpenAIAudioTranslation(identifier='whisper-1', prompt=prompt)
resp = e.predict(buffer, context=['Emmerich'])
buffer.close()
Metadata
Release files for superduper-openai 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| superduper_openai-0.10.0.tar.gz | 14.2 kB | With provenance | Details for superduper_openai-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| superduper_openai-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for superduper_openai-0.10.0-py3-none-any.whl |
Total release size: 26.8 kB
Release files / superduper_openai-0.10.0.tar.gz
| Download URL | superduper_openai-0.10.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d60908157e7a51a88262d8a9b9d36ba50b0f9b87b6dab4db91d02d1489de9bd7
|
|
BLAKE2b-256 checksum How to use checksums |
d7babe257ea216482a9f07f970ba248294cb75b38ed6d6587795f01c0b0ea1d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 26, 2025.
Transparency logRelease files / superduper_openai-0.10.0-py3-none-any.whl
| Download URL | superduper_openai-0.10.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b8c1c4778a4c214c9f6536b312cde0e3d492688cf4e559d5a75851409906d7e
|
|
BLAKE2b-256 checksum How to use checksums |
f0b7d72d86f6a14858f3827bca291ebd49b470a175501a989e09f1100fd5d47b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 26, 2025.
Transparency logSecurity for superduper-openai 0.10.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for superduper_openai-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 26, 2025.
Transparency logA 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.