Skip to main content
The AI SDK reaches NagaAI through any of its three providers. See the AI SDK provider docs.
The OpenAI provider stores responses by default and sends earlier turns as references to them. NagaAI keeps no state, so without store: false the model loses the conversation from the second turn on.
createOpenAICompatible from @ai-sdk/openai-compatible also works with baseURL: "https://api.naga.ac/v1". Set includeUsage: true to get token usage in streams. The Anthropic provider adds /messages to its base URL, so its baseURL ends in /v1.