How to Use
Before you start, ensure thebase_url and api_key refer to FriendliAI.
FriendliAI is fully compatible with the OpenAI SDK, so you can follow the examples below.
Choose one of the available models for the model parameter.
Use the OpenAI Python SDK with FriendliAI endpoints. Migrate existing Python apps by changing the base URL. Covers chat, streaming, and tool calling.
base_url and api_key refer to FriendliAI.
FriendliAI is fully compatible with the OpenAI SDK, so you can follow the examples below.
Choose one of the available models for the model parameter.