Skip to content

Examples and guides for using the OpenAI API

159 B
Raw Blame
def shipping_cost(subtotal: float, *, express: bool = False) -> float:
    if subtotal >= 100:
        return 0
    if express:
        return 15
    return 7