parse_duration_to_seconds: An internal function to parse the duration strings that...

View source: R/rate_limits.R

parse_duration_to_secondsR Documentation

An internal function to parse the duration strings that OpenAI APIs return for ratelimit resets

Description

This internal function parses duration strings as returned by the OpenAI API

Usage

parse_duration_to_seconds(.duration_str)

Arguments

.duration_str

A duration string.

Value

A numeric number of seconds


tidyllm documentation built on Oct. 10, 2024, 5:07 p.m.