Skip to main content
Download an MP3 and pass it as audio input to a gpt-audio model served by a local LiteLLM proxy.
audio_input_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Start LiteLLM

Start the audio-capable local proxy on port 4000:
5

Run the example

Save the code above as audio_input_agent.py, then run:
Full source: cookbook/90_models/litellm_openai/audio_input_agent.py