Skip to main content
Interact with your OpenAI models using LLM.

Supported models

  1. gpt-4o
  2. gpt-4-turbo
  3. gpt-4
  4. gpt-3.5-turbo
  5. gpt-3.5-turbo-instruct

Parameters

An OpenAI LLM interface can have the following parameters:

Usage

Here is how you setup an interface to interact with your OpenAI models.
1
Create a .env file with you OPENAI_API_KEY
Make sure you call your environment variable OPENAI_API_KEY
2
In your python code, import LLM from llmstudio.
3
Create your llm instance.
4
Optional: You can add your parameters as follows:
You are done setting up your OpenAI LLM!

What’s next?

LLM.chat()

Learn how to send messeges and recieve responses next!

Tool calling Agent

Learn how to build a tool calling agent using llmstudio.