Skip to main content

OpenAIClient

Follows the Client protocol and wraps the OpenAI client. Parameters:

Instance Methods

cost

Calculate the cost of the response. Parameters:

create

Create a completion for a given config using openai’s client.
Parameters: Returns:

get_usage

Parameters:

message_retrieval

Retrieve the messages from the response.
Parameters: Returns: