Required API Keys
import osos.environ[“OPENAI_API_KEY”] = “your-api-key” Usage import osfrom litellm import completion os.environ[“OPENAI_API_KEY”] = “your-api-key” # openai callresponse = completion( model = “gpt-4o”, messages=[{ “content”: “Hello, how are you?”,”role”: “user”}]) Usage – LiteLLM Proxy Server Here’s how to call OpenAI models with the LiteLLM Proxy Server 1. Save key in your environment export OPENAI_API_KEY=”” 2. Start the […]