created {TheOpenAIR}R 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


[Package TheOpenAIR version 0.1.0 Index]