Integrate FriendliAI with OpenAI Python SDK for chat, streaming, and more.
base_url
and api_key
refer to FriendliAI.
Since our products are entirely compatible with OpenAI SDK, now you are good to follow the examples below.
Choose one of the available models for model
parameter.