SDK INTEGRATION
VerifiedUse the official JavaScript client with Tsubasa's Chat Completions and model-discovery endpoints.
Covered by a reproducible compatibility test in this repository.
Uses an example ID from the current environment. It is not a recommendation unless the capability panel says so.
import OpenAI from "openai"
const client = new OpenAI({
apiKey: process.env.TSUBASA_API_KEY,
baseURL: "https://api.tsubasa.sh/v1",
})
const stream = await client.chat.completions.create({
model: "tsubasa-medium",
messages: [
{ role: "user", content: "Review this repository and propose a patch." },
],
stream: true,
})