OpenAI
⚠️ Please note that using some AI providers, such as OpenAI's API, can be expensive. Monitor your usage carefully to avoid incurring unexpected costs. We're NOT responsible for your usage under any circumstance.
Quick Start Guide
- Instructions for setting up an OpenAI API key can be found here.
Update your agent settings
- Set
AI_PROVIDERtoopenai. - Set
OPENAI_API_KEYto your OpenAI API key. - Set
OPENAI_MODELtogpt-4oor your preferred OpenAI model. - Set
OPENAI_MAX_TOKENSto the maximum number of input tokens.gpt-4oallows up to120000input tokens. - Set
OPENAI_TEMPERATUREto a value between 0 and 1. The higher the value, the more creative the output. - Set
OPENAI_TOP_Pto a value between 0 and 1. The higher the value, the more diverse the output. - Set
OPENAI_WAIT_BETWEEN_REQUESTSto the number of seconds to wait between requests. Default is1. - Set
OPENAI_WAIT_AFTER_FAILUREto the number of seconds to wait after a failed request. Default is3. - Set
OPENAI_VOICEto the voice name you want if using OpenAI as the TTS provider. Default isalloy. - Set
OPENAI_TRANSCRIPTION_MODELto the transcription model you want if using OpenAI as the transcription provider. Default iswhisper-1