Skip to main content
The GPT models are the best in class LLMs and used as the default LLM by Agents.

Authentication

Set your OPENAI_API_KEY environment variable. You can get one from OpenAI here.

Example

Use OpenAIChat with your Agent:

Params

For more information, please refer to the OpenAI docs as well.