Easily integrate FriendliAI with the OpenAI Node.js SDK.
baseURL
and apiKey
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.