yera.providers.openai_common

Common infra for accessing OpenAI services.

Symbols

def get_openai_client — Build an openai client object from an openai connection object.

get_openai_client

get_openai_client(
    connection: OpenAIConnection,
) → OpenAI

Build an openai client object from an openai connection object.

This will try to get the api key from the connection's specified location and then use it to build a client.