openai_utils¶

Attributes¶

Classes¶

OpenAIAPI

API class for OpenAI API.

Module Contents¶

class openai_utils.OpenAIAPI(model, temperature, system_content)¶

API class for OpenAI API.

model¶
temperature¶
system_content¶
get_result_from_gpt4(query)¶

get result from GPT-4 model.

get_result_from_gpt3_5(query)¶

get result from GPT-3.5 model.

get_result(query)¶

get result from OpenAI API.

openai_utils.openai_util¶