I have been doing this for a while. Voila:
#!/usr/bin/env -S uv run -q --no-project --python ">=3.12" --with "openai"