model {TheOpenAIR}R Documentation

Extract Model from OpenAI API response

Description

This function extracts the model from the parsed HTTP response of an API call to the OpenAI chat completions endpoint.

Usage

model(response)

Arguments

response

a list object representing the HTTP response

Value

a character string representing the model from the response

Author(s)

Ulrich Matter umatter@protonmail.com


[Package TheOpenAIR version 0.1.0 Index]