How to Use
Before you start, ensure thebaseURL and apiKey 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 Node.js SDK with FriendliAI endpoints. Migrate existing Node.js apps by changing the base URL. Covers chat, streaming, and tool calls.
baseURL and apiKey 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.