OpenAIο
- class Client(*, api_key: str, model: str = 'gpt-3.5-turbo-16k', method: OpenAIMethod = OpenAIMethod.CHAT)ο
The LLM integration with OpenAIβs ChatGPT and Completion API.
- Parameters:
api_key (str) β Your secret OpenAI API key.
model (str) β The model to use. Prefer a higher model with a high context window, as the prompt envelopes can make the LLM input quite long.
method (OpenAIMethod) β The method to use to interact with the OpenAI API. I donβt really know the difference in terms of quality, but the chat method has worked fine so far.