created: Extract Created DateTime from OpenAI API response

View source: R/created.R

createdR Documentation

Extract Created DateTime from OpenAI API response

Description

This function extracts the date-time string of when the response was created from the parsed HTTP response of an API call to the OpenAI chat completions endpoint.

Usage

created(response)

Arguments

response

a list object representing the HTTP response

Value

a Date object representing the date-time string of when the response was created

Author(s)

Ulrich Matter umatter@protonmail.com


TheOpenAIR documentation built on April 27, 2023, 5:10 p.m.