Installation
From version 0.8: The OpenAI package,
openai, is not installed by default, install it with the openai extra as shown below.If you have been using oras
autogen or ag2, all you need to do is upgrade it using:autogen and ag2 are aliases for the same PyPI package.LLM Configurations
See the LLM Configuration for further details on setting an creating an LLM configuration. The below example of anOAI_CONFIG_LIST shows how the OpenAI client class is used by specifying the api_type as openai.
api_key key and value in the config, you can set the environment variable OPENAI_API_KEY to your OpenAI key.
Linux/Mac: